PowerTip: Open Windows Explorer to a Location

Doctor Scripto

Summary: Easily open the Windows Explorer to a specific location in Windows PowerShell.

Hey, Scripting Guy! Question How can I use Windows PowerShell with the Windows Explorer graphical tool to browse through the files in
           my home directory or documents location?

Hey, Scripting Guy! Answer Use the Explorer program name and follow it with the location. For your home directory, use the 
           $Home automatic variable:

explorer $HOME

Note  To easily access your documents folder, you can use the variable that I created in 
           I Have a PowerShell Profile—Now What?:

Explorer $doc

0 comments

Discussion is closed.

Feedback usabilla icon