Retrieves or changes the current active directory.
Arguments
Remarks
Example
The following code displays the current active directory.
Visual Basic Script  | Copy Code |
---|
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Echo WshShell.CurrentDirectory |
JScript  | Copy Code |
---|
var WshShell = WScript.CreateObject ("WScript.Shell");
WScript.Echo (WshShell.CurrentDirectory); |
See Also