Windows equivalent to UNIX pwd Windows equivalent to UNIX pwd windows windows

Windows equivalent to UNIX pwd


This prints it in the console:

echo %cd%

or paste this command in CMD, then you'll have pwd:

(echo @echo offecho echo ^%cd^%) > C:\WINDOWS\pwd.bat


It is cd for "current directory".


Open notepad as administrator and write:

@echo %cd%

Save it in c:\windows\system32\with the name "pwd.cmd" (be careful not to save pwd.cmd.txt)

Then you have the pwd command.