Previous Topic: base64Encode--Perform a base64 Encoding of a String (Function)Next Topic: gete--Get Environment Variable (Function)


curDir--Retrieves the Current Directory (Function)

This function retrieves the current directory.

The function has the following syntax:

curDir()

The function returns a string holding the absolute path of the current working directory.

Example

Change to parent directory and retrieve its path:

chdir ..
? curDir()

See also:

cd, chdir Commands--Change Directory (Cmdlet, Funclet)