I am trying to create an ASP page that will cause a batch file to be executed on my Internet Server running Windows Server 2003. I am familiar with, and have attempted to use the following services:
newobj.Run "cmd.exe /c C:\InetPub\wwwroot\SBO\adm
I have also tried a variation to the above that seems to be the only codeset that actually does something - but it just seems to hang forever, and the batch file is never run - but the variation is:
newobj.Run("cmd.exe /c C:\InetPub\wwwroot\SBO\adm
ip.bat", 0, True)
Using ASPExec from www.serverobjects.com
Set Executor = Server.CreateObject("ASPEx
Executor.Application = "cmd.exe /c"
Executor.Parameters = "C:\InetPub\wwwroot\SBO\ad
strResult = Executor.ExecuteDosApp
Using DynuExec from www.dynu.com
Set myexec = Server.Createobject("Dynu.
All of the above code does absolutely nothing. ( With the exception of adding the ", 0, True" to Option 1 variation 2 above - and again - it just hangs ).
I have successfully used these services ( with the exception of Dynu ) on previous versions of Windows ( 2000, NT, etc. ).
I have even opened security much wider than I would like by setting full control permission to the following files:
In fact, I have even given full permissions for the following users on each of the above files:
Internet Guest Account
Launch IIS Process
The contents of my batch file executes perfectly using the Command Prompt Window logged in as Administrator or when double clicked from the explorer window, but when called within the ASP page - nothing - no error - no activity - no hang up - nothing. Result from Shell produces no visible result when called by Response.Write().
The contents of my batch file is as follows - although I seriously doubt that this is even being called due to the nature of the problem.
Can anyone help?
Thanks in advance!