Search code examples
windowscmdpwd

Windows equivalent to UNIX pwd


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


Solution

  • 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