Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I have a local asp website on my PC

Status
Not open for further replies.

chunbo

Programmer
Jan 9, 2003
16
US
I have a local asp website on my PC. How could I invoke a VB application from within ASP page? For example, in VB we can use shell(app_name, parameter), can we do similar thing in ASP?

I tried to build a static link
<A href=&quot;C:\abc.exe&quot;>invokeApp</A> in my asp page.
When running this page, it first asks to download or run, then issues a security warning if I choose to run it. Do we have a way to invoke a program from ASP directly?

Thanks

 
If you just want to launch it on your computer, put the program in a subfolder and point a virtual directory that has execute permission to it and create a normal link to the program. If you want to use ASP to run the program, you can use the Windows Scripting Host. Just do a search on google for [Windows Scripting Host ASP], you'll find all kinds of examples. If you're talking about launching a program on a visitors computer, sorry, there's no way to do it automatically. Adam
 
Not strictly true. I have used Automation to open client versions of Word, Excel and PowerPoint (if they have them installed) when they click on links to doc, xls or ppt files on my site. Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top