Skip to content

Switch from PowerShell to Windows Explorer quickly

Thanks to PowerShell Here I can conveniently get a PowerShell window from wherever I happen to be using Windows Explorer. But I vastly prefer to wander my directories inside of PowerShell, only switching to Explorer when I need to do something that Explorer does much better. (For example, source control through TortoiseSVN.)

Adding this function to my PowerShell Profile, I quickly get an explorer window just by typing ‘exp’.

function explore ( [string] $dir )
{
    explorer.exe $dir
}
set-alias -name 'exp' -value explore

Usage: exp or exp 'subdirectory'

Enjoy!

  • Edward