in reply to Unable to run batch file in CGI Script

It depends on your version of IIS (I'm assuming IIS as you're running Windows Batch files based on your code example). Newer versions of IIS do not allow access to CMD.EXE which is needed to 'interpret' the batch file. This is a new 'security feature' that gave me issues too.

I didn't deal too much with it, just rewrote my batch in Perl, but I understood the only way to get around it was to run the IIS service as "Administrator" - HIGHLY **NOT** RECOMMENDED!!!

  • Comment on Re: Unable to run batch file in CGI Script

Replies are listed 'Best First'.
Re^2: Unable to run batch file in CGI Script
by venkatesan_G02 (Sexton) on Sep 23, 2009 at 13:46 UTC
    Hi,

    I am using Apache web server.
      I am stuck with the same problem did u find any solution for this