I need to run a batch file on a remote machine from an ASP page. I dummied
up a test ASP page as follows:
<%
Set WshShell = Server.CreateObject("Wscript.Shell")
wshshell.run "c:\inetpub\wwwroot\logasp\getdr.bat > c:\tstlog.txt"
%>
the batch file is as follows:
set >c:\env.txt
dir c:\*.*
On my local machine, it runs fine, generating the env.txt and tstlog.txt
files. When I put it on another machine, the directory and environment
commands don't run. All I get is:
C:\WINDOWS\system32>set 1>c:\env.txt
C:\WINDOWS\system32>dir c:\*.*
for a response. I've tried setting the authentication to BASIC as suggested
by a Microsoft SME at TechED but to no avail. Why does it not work?
In the end, I need to be able to have the ASP page call a batch file to
change ACLS on files on a remote machine.
Any help would be appreciated.