Contact Info

Crumbtrail

ActiveXperts.com » Administration » Powershell » Powershell 2.0 » Push-Location

Push-Location - Powershell 2.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »

Push-Location

Short description
Adds the current location to the top of a list of locations (a "stack").

Syntax


Description
The Push-Location cmdlet adds ("pushes") the current location to the top of a list of locations, called a "stack." 
You can push the current location onto a default stack or onto a stack that you create. If you specify a path, Push
-Location pushes the current location onto the stack and then changes the current location to the location specifie
d by the path. You cannot push a location onto the stack unless it is the current location.