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

kick start a .BAT file from ASP

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
hello,
I use ASP in IIS for my intranet program.
On the same computer, in P:/ I have a .bat file that I want it to be run when user do something on the webpage.
so it the following what I have to do?
-------------------------------------------
Set wsh = Server.CreateObject("WScript.Shell")
wsh.run "D:\ASP\QC\SOURCE\PDM\pdm_run\PartsInf.bat", 0, true
Set wsh = Nothing
--------------------------------------------
when I run that webpage it didn't complain anything, yet it didn't seems have execute my PartsInf.bat either.
if anyone know what have been missing from the code? it WScript.Shell is simply not the way for it?
gus
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top