0 out of 1 rated this helpful - Rate this topic

Path Property (Windows Script Host)

Returns the name of the directory containing the host executable (CScript.exe or WScript.exe).


                      object.Path 
object

WScript object.

The Path property is a read-only string.

Description

The following VBScript code echoes the directory where the executable file resides.

WScript.Echo (WScript.Path);

Applies To:

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ