September 26th, 2014

PowerTip: Find Current Working Directory in PowerShell

Doctor Scripto
Scripter

Summary: Easily find your current working directory in Windows PowerShell.

Hey, Scripting Guy! Question I saved a file to my current working directory while I was working in the Windows PowerShell console,
           but I am not sure how to find where the file is.

Hey, Scripting Guy! Answer Use the Convert-Path cmdlet and specify a period ( ). It displays a file system path to your
           current working directory:

Convert-Path.

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.