Jump to content

Recommended Posts

Posted

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 5

I want it as simple as possible please.

Thanks

Taggs

:hello:


Posted

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\command

default 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.10

I'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 end

I've also tried

"c:\my prog\prog.exe" "%1"

but still it does not like it?

I hope this makes sense. Any Ideas?

  • 3 weeks later...
Posted
Managed to sort now.

:thumbup

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

  • 2 months later...
Posted

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 safe

to enabled.

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...