Folders and Directories

There are a number of handy CmdLets for working with file folders or directories.

  • Get-Location
  • Set-Location
  • Push-Location - this puts the current directory onto the stack and then changes to the specified directory
  • Pop-Location - switch to the most recent location on the stack, so the one before Push-Location changed directory
Personally I like Get-Location but an alternative is as follows:
(Get-Item -Path ".\").FullName
Which works but just does not seem as clean.