Path

Description

Returns the path portion of the URL for the current document. The path does not include the file name.

Applies to

PSDocumentClass object

Syntax

psDocument.Path( )

Returns

String.

Usage

At runtime, Path extracts the URL path for the current document from the PATH_INFO server environment variable.

Examples

Example 1

The following example returns the path portion of the current URL into a variable called mypath. If the URL for the current document is http://MyServer/Files/myscript.asp, the value of mypath is set to “/Files”:

mypath = psDocument.Path( );