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
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