Shell.pushLocation

Pushes the current working directory onto a stack, and then changes directory.

Usage: Use Shell.popLocation to go back to the previous directory.

Combining pushLocation with scope(exit) Shell.popLocation is a good practice.

See also: Powershell's Push-Location cmdlet.

class Shell
static
void
pushLocation
(
string dir
)

Parameters

dir string

The directory to change to.

Meta