This prints it in the console:
echo %cd%
or paste this command in CMD, then you'll have pwd:
pwd
(echo @echo offecho echo ^%cd^%) > C:\WINDOWS\pwd.bat
It is cd for "current directory".
cd
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.