You can use the following syntax in Command Prompt (CMD) to get the current directory path:
cd
In this example, the cd command will display the full path of the current directory.
The following example shows how to use this syntax in practice.
Example: How to Get Current Directory Path in CMD
Suppose that we want to get the current directory path. We can type the following command:
cd
Output: 👇️
We can see that the full path of the current directory is displayed.
Conclusion
The cd command without any arguments will always display the current directory path.
You can find more topics about Active Directory tools and PowerShell basics on the ActiveDirectoryTools home page.