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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Run and exe file in server side ?

Status
Not open for further replies.

JohnPham

Programmer
Jul 9, 2001
34
US
Hi All,

Anyone has run the exe file use vbscript in server side? I try this but it doesn't work, please advise..

temp = Request.ServerVariables("appl_physical_path")
set testExe = server.CreateObject("wscript.shell")
testExe.Run "%ComSpec% /c " & temp & " Myprogram.exe"

I also try this without the "%ComSpec% /c " , it does work either---
testExe.Run temp & " Pim91Load.exe"

Should I also run this exe file with some parameters?

like: testExe.Run temp & " Pim91Load.exe" & " " & parameter

thanks a lot for any help.

John
 
usually the file is saves as a .dll not an .exe and is registered on the server. the server can then createobject("app.method") to invoke the object

hth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top