Notitie
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen u aan te melden of de directory te wijzigen.
Voor toegang tot deze pagina is autorisatie vereist. U kunt proberen de mappen te wijzigen.
Retrieves or changes the current active directory.
Syntax
object.CurrentDirectory
Arguments
- object
WshShell object.
Remarks
The CurrentDirectory returns a string that contains the fully qualified path of the current working directory of the active process.
Legacy Code Example
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);