PowerTip: Find Current Directory in PowerShell

Doctor Scripto

Summary: Easily find the current directory in Windows PowerShell. 

Hey, Scripting Guy! Question How can I return a path object that contains information about the current working directory in Windows PowerShell?

Hey, Scripting Guy! Answer Use the $pwd automatic variable:

PS C:\> $pwd


Discussion is closed.

Feedback usabilla icon