in reply to Can't spawn "cmd.exe":

For me returning -1 from the called script causes the problem. Returning other values i.e -2 solves the problem.

Replies are listed 'Best First'.
Re^2: Can't spawn "cmd.exe":
by Anonymous Monk on Sep 19, 2013 at 06:54 UTC
    I have a script where -1 is being returned from a lot of places which can not be changed. I have used "system" to call that script. Can anyone suggest how to get it working as I am getting the same can't spawn warning which is breaking my other logic. Thanks in advance
      no, not without details (code)