DirectScript comes with Active Server Pages (ASP) examples that perform a host of tasks using DirectScript objects. The samples are written using VBScript and JScript.
To run these ASP examples, you need a server machine with Microsoft Internet Information Server (IIS) version 3.0 or later installed on it. If you are using IIS 3.0 then you may have to install Active Server Pages also (setup executable is available with Windows NT Service Pack 3.0). You may have a look at Operating System/Web Server Requirements for other details.
To install the DirectScript ASP samples (if you are using IIS 3.0 as your web server), do the following:
Stop the "World Wide Web Publishing Service" on your server machine through the Services applet in the Control Panel.Install bv-Admin on your server machine.
Copy the "..\Samples\ASP" folder from the bv-Admin install path to a folder (say "DScriptASPs") in the "..\InetPub\WWWRoot" folder on the Server. (After this step, all ASP samples will be in "..\InetPub\WWWRoot\DScriptASPs").
Open Internet Service Manager.
Select the WWW service and click Service Properties... on the Properties menu.
In the Service tab (Password Authentication frame), select the Basic (Clear text) check box and clear the Allow Anonymous and Windows NT Challenge/Response check boxes.
In the Directories tab, select the DirectScript virtual directory and click Edit Properties.
In the Directory Properties dialog box, select the Read and Execute check boxes in the Access frame.
Give appropriate NTFS permissions (Read and Execute) to the "..\InetPub\WWWRoot\DScriptASPs" folder.
Start the "World Wide Web Publishing Service" through the Services applet in the Control Panel.
To install the DirectScript ASP samples (if you are using IIS 4.0 as your web server), do the following:
Stop the "IISAdmin" service on your server machine through the Services applet in the Control Panel.
Install bv-Admin on your server machine.
Copy the "..\Samples\ASP" folder from the bv-Admin install path to a folder (say "DScriptASPs") in the "..\InetPub\WWWRoot" folder on the Server. (After this step all the ASP samples will be in "..\InetPub\WWWRoot\DScriptASPs").
Open Internet Service Manager.
Right-click Default Web Site and click Properties.
In the Home Directory tab, select the Read check box under Access Permissions and select the Execute (including script) permission in the Application Settings frame.
In the Directory Security tab, click Edit in the Anonymous Access and Authentication Control frame.
In the Authentication Methods dialog box, select the Basic Authentication check box and clear the Allow Anonymous and Windows NT Challenge/Response check boxes.
Give appropriate NTFS permissions (Read and Execute) to the "..\InetPub\WWWRoot\DScriptASPs" folder.
Start the "IISAdmin" service through the Services applet in the Control Panel.
The current security settings of Windows NT will affect whether you can actually perform certain tasks. Before running the scripts you will need to make sure that you have the required administrative and access rights.
See Also:
ASP VBScript Examples
ASP JScript Examples