How to Get Current Directory Path in CMD
• 1 min read
cmd command-prompt directory cd path windows
You can use the following syntax in Command Prompt (CMD) to get the current directory path:
cd
This example will display the current working directory path.
The following example shows how to use this syntax in practice.
Example: Getting Current Directory Path in CMD
To get the current directory path, simply type:
cd
Output: 👇️
!Get current directory path in cmd
We can see that the current directory path is displayed.
Conclusion
We can use the cd command without any arguments to display the current directory path.
You can find more topics about Active Directory tools and PowerShell basics on the ActiveDirectoryTools home page.