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

0 comments

Comments are closed. Login to edit/delete your existing comments

Feedback usabilla icon