| |
willem
Posts: 12
Score: 0
Joined: 4/25/2005
From: France
Status: offline
|
Hi there scripters, I am trying to run a batch file from an ASP page. [^]from a .vbs script, the following code gives returncode 0: oShell=wscript.createobject("wscript.shell") rc=oShell.run("test.bat",1,true) wscript.echo rc from my ASP page, I am doing the following: oShell=createobject("wscript.shell") rc=oShell.run("test.bat",1,true) response.write "rc=" & cstr(rc) [:(!]this does not execute the batch file, and returns rc=1. The batch file (for the moment) just copies a file to another. What am I doing wrong ? I tried: rc=oShell.run("cmd /c test.bat",1,true) it doesn't work either. thanks for your help in advance!
|
|