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.
The directory to change to.
See Implementation
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.