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



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 VBScript commands

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

Copyright © 1999-2023 SS64.com
Some rights reserved