July 23rd, 2015

PowerTip: Open Windows Explorer to a Location

Doctor Scripto
Scripter

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

Author

The "Scripting Guys" is a historical title passed from scripter to scripter. The current revision has morphed into our good friend Doctor Scripto who has been with us since the very beginning.

0 comments

Discussion are closed.

Feedback