|
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!
|
|
|
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.
|
|
|
|
|
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! :)
|
|
|
|
|
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.
|
|
|
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 )
|
|
|