IIS 4.0 CGI/bat/cmd

Dylan Thurston ( (no email) )
Fri, 19 Jun 1998 10:30:54 -0400

This is a multi-part message in MIME format.

------=_NextPart_000_0045_01BD9B6D.56FC5580
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

I have been tackling this problem for a week now and have gotten =
nowhere(mabey someone out there can help me out). I have windows NT =
server 4.0 and IIS 4.0 installed on the machine. I have also installed =
access 97 and the odbc files. I have a database that i have successfully =
exported the Forms and Querys to dynamic web files (.asp) they seem to =
work fine so i tried to export the reports. unfortunally the reports =
don't export dynamically . so every time you want the reports updated =
for the web you need to physically go to that machine and run the macro =
to export the reports. Well now i get to the problem. I wrote a BAT file =
to run the the export process for the reports and wanted to allow people =
on the web to be able to run this batch file as a CGI. So i went in and =
added a cgi-bin gave it exe permisions and was unable to get the bat to =
run (using "<!--#exec cgi=3D"/cgi-bin/{batfile.bat}"" -->" in a shtml =
file) So then i found that you need to add app mapping in IIS 4.0 this =
is where i think that i have messed up . i added the extension .bat to =
the app mapping of the cgi-bin and associated it with =
"c:\winnt\system32\cmd.exe /c". I think this is the command interpetor i =
need to use but it still won't run the bat file as a cgi.=20

------=_NextPart_000_0045_01BD9B6D.56FC5580
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

    I have been =tackling this=20problem for a week now and have gotten nowhere(mabey someone out there =can help=20me out). I have windows NT server 4.0 and IIS 4.0 installed on the =machine. I=20have also installed access 97 and the odbc files. I have a database that =i have=20successfully exported the Forms and Querys to dynamic web files (.asp) =they seem=20to work fine so i tried to export the reports. unfortunally the reports =don't=20export dynamically . so every time you want the reports updated for the =web you=20need to physically go to that machine and run the macro to export the =reports.=20Well now i get to the problem. I wrote a BAT file to run the the export =process=20for the reports and wanted to allow people on the web to be able to run =this=20batch file as a CGI. So i went in and added a cgi-bin gave it exe =permisions and=20was unable to get the bat to run (using "<!--#exec=20cgi=3D"/cgi-bin/{batfile.bat}"" -->" in a shtml =file) So=20then i found that you need to add app mapping in IIS 4.0 this is where i =think=20that i have messed up . i added the extension .bat to the app mapping of =the=20cgi-bin and associated it with "c:\winnt\system32\cmd.exe /c". =I think=20this is the command interpetor i need to use but it still won't run the =bat file=20as a cgi.
------=_NextPart_000_0045_01BD9B6D.56FC5580--