How do I find the local path on windows in a command prompt?
How do I find the local path on windows in a command prompt?
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
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.
In PowerShell pwd is an alias to Get-Location so you can simply run pwd in it like in bash
It can also be called from cmd like this powershell -Command pwd although cd or echo %cd% in cmd would work just fine
hmm - pwd works for me on Vista...
Final EDIT: it works for me on Vista because WinAvr installed pwd.exe and added \Program Files\WinAvr\Utils\bin to my path.