6 out of 6 rated this helpful - Rate this topic

CurrentDirectory Property

Retrieves or changes the current active directory.


                      object.CurrentDirectory
object

WshShell object.

The CurrentDirectory returns a string that contains the fully qualified path of the current working directory of the active process.

The following code displays the current active directory.

Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory
var WshShell = WScript.CreateObject ("WScript.Shell");
WScript.Echo (WshShell.CurrentDirectory);

Applies To:

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