Run a .bat or .exe on server
Hi,
can someone help me please before I go mad. I'm trying to get a bat file to run on the IIS server when a page loads. All the bat file does is create a new directory on the server. However, when the page loads it doesn't report any errors and the bat file doesn't run. I'm using the following:
<%
Set server_shell = Server.CreateObject("wscript.shell")
server_shell.Run ("cmd.exe /c a.bat")
%>
Also, it doesn't matter what path I put to the bat file. Even if I make up a non-existent file name, no error comes back to tell me there is a problem and the page loads as if everything is OK.
What am I doing wrong?
thanks
plong
|