如何在命令提示符中找到Windows上的本地路径?
当前回答
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.
其他回答
C:\Documents and Settings\Scripter>echo %cd%
C:\Documents and Settings\Scripter
C:\Documents and Settings\Scripter>
对于Unix使用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.
你可以简单地写上"。"点号。我有一个cmd应用程序,需要路径,我已经在需要的目录,我使用点符号。
希望能有所帮助。
推荐文章
- 如何从命令行在windows中找到mysql数据目录
- 在没有事件源注册的情况下写入Windows应用程序事件日志
- Windows FINDSTR命令的未记录的特性和限制是什么?
- 无法在Windows上从/usr/local/ssl/openssl.cnf加载配置信息
- GIT克隆在windows中跨本地文件系统回购
- 如何运行一个PowerShell脚本而不显示窗口?
- PowerShell:仅为单个命令设置环境变量
- 为什么这个Windows批处理文件只执行第一行,而在命令shell中执行所有三行?
- 环境变量存储在Windows注册表的哪里?
- 有一个好的Valgrind Windows的替代品吗?
- Windows和Linux上的c++编译:ifdef开关
- 如何验证批处理文件中是否存在一个文件?
- 异步运行Windows批处理文件命令
- XAMPP -端口80被PID 4的“无法打开进程”使用!12
- 为什么git在Windows下记不住我的密码