Displays the current location.
Snap-In: Microsoft.PowerShell.Management
Syntax:
Get-Location
[-PSProvider <String[]>] [-PSDrive <String[]>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Get-Location
[-Stack] [-StackName <String[]>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The place to which data is written and from which data is accessed is called the location. The current working location is the location that the shell uses by default unless you specify another one. If your working location is C:\Drawing s\CommercialBldgs, then data will be saved to and retrieved from there. Locations can be stored on a stack and pop will access the last location on top of the stack. Push will add a location to the top of the stack.