.CurrentDirectory

Retrieve or change the current directory. The CurrentDirectory returns a string that contains the fully-qualified pathname of the current working directory

Syntax 
      .CurrentDirectory

Example

set objShell = WScript.CreateObject ("WScript.Shell")
WScript.Echo (objShell.CurrentDirectory)

“There are many terrorist states in the world, but the United States is unusual in that it is officially committed to international terrorism, and on a scale that puts it's rivals to shame” ~ Noam Chomsky

Related:

Equivalent Windows command: CD - Change Directory - move to a specific Folder


 
Copyright © SS64.com 1999-2019
Some rights reserved