thankgodfortektips
Programmer
Hi All,
I have been banging my head against the wall with this for ages... below is the code that I am trying to run. As you can see it 'should' be very simple.
The batch file that it runs only has one simple line (for now)... mkdir c:\temp\hello
The page will reply with an Ok message, but the batch file is not actually running. I have given the Internet Guest Account full permission to c:\windows\system32 and c:\temp... but still no look.
Thanks in advance!
<html>
<head><title>ASPExec Test (copy)</title><head>
<body>
<H3>ASPExec Copy Test</H3>
<%
Dim SiteToMake
sitetomake = "c:\temp\test.bat"' & chr(34)
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd /c " & SiteToMake
Executor.Parameters = ""
strResult = Executor.ExecuteWinApp
Response.Write "<pre>" & strResult & "</pre>"
%>
</body>
</html>
I have been banging my head against the wall with this for ages... below is the code that I am trying to run. As you can see it 'should' be very simple.
The batch file that it runs only has one simple line (for now)... mkdir c:\temp\hello
The page will reply with an Ok message, but the batch file is not actually running. I have given the Internet Guest Account full permission to c:\windows\system32 and c:\temp... but still no look.
Thanks in advance!
<html>
<head><title>ASPExec Test (copy)</title><head>
<body>
<H3>ASPExec Copy Test</H3>
<%
Dim SiteToMake
sitetomake = "c:\temp\test.bat"' & chr(34)
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd /c " & SiteToMake
Executor.Parameters = ""
strResult = Executor.ExecuteWinApp
Response.Write "<pre>" & strResult & "</pre>"
%>
</body>
</html>