如何在命令提示符中找到Windows上的本地路径?


当前回答

你只需要输入

cd

它将返回当前路径。

其他回答

以管理员身份打开记事本,写下:

@echo %cd%

保存在c:\windows\system32\ 以“pwd”命名。Cmd "(注意不要保存pwd.cmd.txt)

然后是pwd命令。

cd ,

它将给出当前目录

D:\Folder\subFolder>cd ,
D:\Folder\subFolder

它将显示控制台中的当前路径,使用下面的命令

echo %cd%

cd不带参数,相当于Unix/Linux下的pwd。

从输入cd /?:

Displays the name of or changes the current directory.

[...]

Type CD without parameters to display the current drive and directory.

使用下面的命令

dir | find "Directory"