Windows equivalent to UNIX pwd

2019-01-16 02:14发布

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

标签: windows cmd pwd
9条回答
地球回转人心会变
2楼-- · 2019-01-16 02:46

You can simply put "." the dot sign. I've had a cmd application that was requiring the path and I was already in the needed directory and I used the dot symbol.

Hope it helps.

查看更多
Lonely孤独者°
3楼-- · 2019-01-16 02:51

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.

查看更多
啃猪蹄的小仙女
4楼-- · 2019-01-16 02:52

C:\Documents and Settings\Scripter>echo %cd% C:\Documents and Settings\Scripter

C:\Documents and Settings\Scripter>

for unix use pwd command

Current working directory

查看更多
登录 后发表回答