Taggs Posted June 15, 2006 Share Posted June 15, 2006 Hi can someone help me please?I want to run a local executable from an asp web page. I dont care about the security issues etc as the site is and only will be, internal.Here is the type of thing i want to do <a href="file:///C:/WINDOWS/system32/mstsc.exe /v <% response.write(servername) %>"><img align="center" border="0" src=<% response.write("""\images\" & model & ".gif""")%> width="400" height="151"></A>I am runing IIS 5I want it as simple as possible please.ThanksTaggs Link to comment Share on other sites More sharing options...
Taggs Posted June 16, 2006 Author Share Posted June 16, 2006 OK i've found some things else where on the internet. Not an ideal method but it works to a fashion.I have to run a reg entry on the local pc.HKEY_CLASSES_ROOT called 'myprog'key called 'URL Protocol'sub-keys: \shell\open\commanddefault string Key to: " c:\my prog\prog.exe"On my web page I have a link as:<A HREF="myprog:">run myprog</A>This opens the app great, but i want to pass a parameter as well.ie prog.exe /a:10.10.10.10I've found default string "c:\my prog\prog.exe %1"<A HREF="myprog: %a %b %c">run myprog</A>but it does not like the "%1" at the endI've also tried "c:\my prog\prog.exe" "%1"but still it does not like it?I hope this makes sense. Any Ideas? Link to comment Share on other sites More sharing options...
Taggs Posted June 16, 2006 Author Share Posted June 16, 2006 Managed to sort now. Link to comment Share on other sites More sharing options...
ramone_johnny Posted July 5, 2006 Share Posted July 5, 2006 Managed to sort now. Dont you hate it when you get to the bottom of a thread of interest only to find such a useless response, or even worse "Its fixed" with absolutely no mention of how.RJ Link to comment Share on other sites More sharing options...
Taggs Posted September 7, 2006 Author Share Posted September 7, 2006 I do Apologise but the fix was not with the code. It was with the IE settings.You need to set Intialize and script ActiveX controls not marked as safeto enabled. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now