I try to run this code. It works but I need to do more with it.
I'm able to go to the directory that I specify, but now I want to run this (nrcmd.bat). I tried it by using this
Executor.Application = "cmd /c c:\CNR\NetworkRegistrar\bin\nrcmd.bat"
But something comes up saying not an internal command or external.
So I tried it on the Dos cmd. I get the same thing but if I change the directory then run the (nrcmd.bat) it works
So does any one know how to run a program once I'm in the directory where the (nrcmd.bat) file is?
The code I'm using
<html>
<head><title>ASPExec Test (copy)</title><head>
<body>
<H3>ASPExec Copy Test</H3>
<%
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd.exe"
Executor.Parameters = "/C dir c:\CNR\NetworkRegistrar\bin"
Executor.Parameters =
strResult = Executor.ExecuteDosApp
Response.Write "<pre>" & strResult & "</pre>"
%>
</body>
</html>
I'm able to go to the directory that I specify, but now I want to run this (nrcmd.bat). I tried it by using this
Executor.Application = "cmd /c c:\CNR\NetworkRegistrar\bin\nrcmd.bat"
But something comes up saying not an internal command or external.
So I tried it on the Dos cmd. I get the same thing but if I change the directory then run the (nrcmd.bat) it works
So does any one know how to run a program once I'm in the directory where the (nrcmd.bat) file is?
The code I'm using
<html>
<head><title>ASPExec Test (copy)</title><head>
<body>
<H3>ASPExec Copy Test</H3>
<%
Set Executor = Server.CreateObject("ASPExec.Execute")
Executor.Application = "cmd.exe"
Executor.Parameters = "/C dir c:\CNR\NetworkRegistrar\bin"
Executor.Parameters =
strResult = Executor.ExecuteDosApp
Response.Write "<pre>" & strResult & "</pre>"
%>
</body>
</html>