Adriaan W

Is there a GOOD way to open a program (exe or bat) on the client computer when clicking on a link.

You can use <a href="program.exe">Click to start</a> but then you have a popup to run the program or to save it.

Another way was to use shell.run in javascript, but again a popup appear to accept the activex. This is not bad, but it does not work in firefox (think activeX is a IE thing )

Now I was thinking for a custom URI scheme. It's like mailto: opens the mailclient, callto: opens skype, mms: will open your mediaplayer.. now I want my own URI linked to a program.

After some googling, I found something in C# to register a URI. I think this is registred correct, but when I go to a link in my browser... myuri:test.. nothing happens. "test" is here a parameter that I want to pass to the program.

Anyone suggestions
Thx !


Re: Internet Explorer Web Development Open program via link on website (Custom URI ?)

EricLaw-MSFT

http://msdn.microsoft.com/library/default.asp url=/workshop/networking/pluggable/overview/appendix_a.asp is what you want. You should be very careful that there is no set of input which can be passed to your process that would cause a security problem on the user's computer.



Re: Internet Explorer Web Development Open program via link on website (Custom URI ?)

Adriaan W

It works !! Strange, but I tested the same thing some days ago and it did not work 100%. After reading the msdn tutorial, it works. Very nice! Must be a little mistake.

THX !!