Using DirectScript ASP Samples

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.

Installing DirectScript ASP if you are using IIS 3.0

To install the DirectScript ASP samples (if you are using IIS 3.0 as your web server), do the following:

  1. 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.

  2. 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").

  3. Open Internet Service Manager.

  4. Select the WWW service and click Service Properties... on the Properties menu.

  5. 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.

  6. In the Directories tab, select the DirectScript virtual directory and click Edit Properties.

  7. In the Directory Properties dialog box, select the Read and Execute check boxes in the Access frame.

  8. Give appropriate NTFS permissions (Read and Execute) to the "..\InetPub\WWWRoot\DScriptASPs" folder.

  9. Start the "World Wide Web Publishing Service" through the Services applet in the Control Panel.

Installing DirectScript ASP if you are using IIS 4.0

To install the DirectScript ASP samples (if you are using IIS 4.0 as your web server), do the following:

  1. Stop the "IISAdmin" service on your server machine through the Services applet in the Control Panel.

  2. Install bv-Admin on your server machine.

  3. 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").

  4. Open Internet Service Manager.

  5. Right-click Default Web Site and click Properties.

  6. 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.

  7. In the Directory Security tab, click Edit in the Anonymous Access and Authentication Control frame.

  8. In the Authentication Methods dialog box, select the Basic Authentication check box and clear the Allow Anonymous and Windows NT Challenge/Response check boxes.

  9. Give appropriate NTFS permissions (Read and Execute) to the "..\InetPub\WWWRoot\DScriptASPs" folder.

  10. 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: