Finally, when asked about Access Permissions, make sure to turn on
the Execute option.
4. Once you have a virtual directory configured, right-click the folder,
click Properties, choose the Virtual Directory tab, and then click
Configuration.
For a CGI program to work, its output must be sent to the
???console,??? a text-based display that works like the Command
Prompt. For this reason, the CScript.exe script interpreter
(engine), mentioned near the beginning of this
chapter, must be used instead of the standard WScript.exe
Windows-based interpreter.
5. Click Add, and type the following:
c:\windows\system32\cscript.exe "%s" "%s"
in the Executable field (change the path to match your system, if necessary),
and type .vbs in the Extension field (make sure to include the dot).
Naturally, the filename extension will be different for JavaScript or Perl
script files. Or, if you like, you can even make up a new filename extension
for use with your VBScript CGI scripts (such as .vbsc or .vbcgi), as
long as what you type doesn??™t conflict with another entry in the list.
6. The All Verbs, Script engine, and Check that file exists options should
all be selected. Click OK, and then OK again when you??™re done.
The next step is to write a CGI script and place it in your executable folder.
CGI scripts can use any of the commands and routines discussed elsewhere
in this chapter, except, of course, for those that create dialog windows, such
as MsgBox and InputBox.
Pages:
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749