Windows equivalent to UNIX pwd

Joshua picture Joshua · May 28, 2009 · Viewed 353.3k times · Source

How do I find the local path on windows in a command prompt?

Answer

Petar Kabashki picture Petar Kabashki · May 28, 2009

This prints it in the console:

echo %cd%

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

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