codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  Start exe file from HTML page  stevebl at 08:13 on Friday, March 05, 2004
 


Hi!

Does anybody know if its possible to link to an exe file with parameters in an html page (using HTML code or java script) ?

What I want to do is start the following program from my html page: program.exe -b -a.

To start the program without parameters the following code works fine
<A HREF="program.exe"> Start program </A>

but how do I start the program with parameters?

Any help would be greatly appreciated!

  Re: Start exe file from HTML page  Troy Wolf at 21:54 on Friday, March 05, 2004
 

How about creating a shortcut file for the program. In the shortcut you can define parameters, working folder etc. Then you can link to the shortcut in your HTML instead. I've not tried this, but seems it would work.
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Start exe file from HTML page  Troy Wolf at 14:06 on Wednesday, March 17, 2004
 

stevebl, don't forget to follow up here in the forum with your solution. That's what forums are all about-- getting answers, and letting others learn from your journey!

Thanks for using codetoad.com forums! :)
Troy Wolf: site expert
SnippetEdit Website Editor


  Re: Start exe file from HTML page  StupidRalph at 15:15 on Thursday, April 15, 2004
 

I was actually looking for the same solution...I haven't come up with anything as of yet...but I am quite interested as to how this is done.


  Re: Start exe file from HTML page  StupidRalph at 10:48 on Friday, April 16, 2004
 

Actually, after trying linking it to a shortcut unsucessfully. However, I was able to find other alternatives.

1. First one would be to create an HTML application (.hta).
http://msdn.microsoft.com/library/d...htaoverview.asp

2. Second, You could launch an .exe using flash's fscommand exec use:

fscommand("exec","exename.exe");


restrictions
exe must be in subfolder called 'fscommand'
the running file must be exe projector not swf (if using v6 flashplayer)

in flashplayer 4 there are no such restrictions

3. Finally the best option for this would be using the LaunchinIE.dll. This .dll allows you to do exactly what you want. Launch an application via the browser. Check out:
(http://www.whirlywiryweb.com/q%2Flaunchinie.asp )










CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
//








Recent Forum Threads
•  Re: Security - Code verify
•  Job @ EarlySail
•  Job @ EarlySail (perl)
•  IPC problem
•  Re: import contacts of msn/yahoo
•  Cookies and Threads C++
•  right justify a background in a table?
•  Help with Loop (C++/MFC)
•  Help with Loop (C++/MFC)


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2007