Jump to content

Run executables from asp page


Recommended Posts

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:

Link to comment
Share on other sites


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?

Link to comment
Share on other sites

  • 3 weeks later...
  • 2 months later...

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