executing .bat files as CGI on WIN NT 4.0
Posted on 1997-10-02
I am trying to execute a bat file as a CGI script
on a WIN NT 4.0 web server. I have managed to associate
c:\%SystemRoot%\System32\cmd.exe with .bat files and
.cgi files using the registry.
I have HTML files that I access over the Net and FORM
statements within that ACTION these .bat files.
The result of attempting to execute this batch file
is HTTP: error 501 which in my documentation just says
"cannot assign a varable".
I dont know how to write .bat command files that are
compatable with the web. I have written equilivent shell
scripts for UNIX ok, so I'm fairly up to speed.
Searching the net I just find example CGI for UNIX
I cannot find example CGI .bat files for WIN NT.
By the way my latest attempt at a .bat file looks like:
echo "Context-type: text/html"
echo "Some Text"
Also How do I pass search queries into these .bat CGI
files? I think they are environment varables but an
example would go down a treat.
Could any one help.