http://qs321.pair.com?node_id=797019


in reply to Re: Unable to run batch file in CGI Script
in thread Unable to run batch file in CGI Script

Maybe you can't start a batch file directly, maybe you have to say system('cmd.exe _path_to_batch_file');

Replies are listed 'Best First'.
Re^3: Unable to run batch file in CGI Script
by venkatesan_G02 (Sexton) on Sep 23, 2009 at 16:48 UTC
    I tried by placing the test.bat file in the C:\Windows\system32 folder and changing thesystem command to "system('cmd.exe test.bat'); but i am getting "Premature ending of headers" error. But the same program is working when executed through command prompt.