Loading ...
Sorry, an error occurred while loading the content.
 

run batch file from ASP ..please help ??

Expand Messages
  • Inder Pal Singh Khurana
    hello i have written a ASP file and through that is using Windwos Scritping Host, i run Batch file which will use shutdown.exe to reboot the remote pc (nt
    Message 1 of 1 , Sep 28, 2001
      hello

      i have written a ASP file and through
      that is using Windwos Scritping Host, i run Batch file which will use
      shutdown.exe to reboot the remote pc (nt server).

      following is the code in ASP

      <%

      Set Wshell = Server.CreateObject("wscript.shell")
      Wshell.Run "c:\test.bat"
      Set Wshell = Nothing
      Response.Write "Done"
      %>

      following is the code in Test.bat (batch file)

      shutdown.exe \\computerName /r

      the batch file executes when i manually run in command

      but through ASP it does not executes..

      can u please help me out??

      Inder Pal
      inderpal100@...
      India
    Your message has been successfully submitted and would be delivered to recipients shortly.