locked
Shelling a .bat file in MS Server 2003 RRS feed

  • Question

  • What forum would you suggest that I post this question:

    =======================

    I'm running a service on Windows Server 2003 R2 that runs a vbscript that shells out to a .bat file.  Here's the vbscript:

      Dim objWSS
      Set objWSS = CreateObject("WScript.Shell")
      objWSS.Run batfile, 0, false

    The service locks on the last command.  It appears to not have the proper user setting permissions to shell the bat file.  Any ideas on what type of security settings I need to set?

    The service was running previously on Windows XP Professional workstation with no problem.  However, we had to move these services to servers, and the problem with failure to shell the bat file has appeared.  I can run the .bat file from a command prompt on the server with no problem, but it locks up when trying to launch from a service.

    I cannot rewrite the code, as it is a production module and we are in a code-freeze.

    Any suggestions would be most appreciated

    Thanks

    John
    Sunday, September 27, 2009 11:04 PM

Answers