Windows shell命令获取当前目录的完整路径? [英] Windows shell command to get the full path to current directory?
本文介绍了Windows shell命令获取当前目录的完整路径?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有Windows命令行命令,我可以用来获取当前工作目录的完整路径?此外,如何将此路径存储在批处理文件中使用的变量中?
Is there a Windows command line command that I can use to get the full path to current working directory? Also, how can I store this path inside a variable used in a batch file?
推荐答案
使用 cd
没有参数,如果你直接使用shell,或%cd%
如果你想在批处理文件中使用它)。
Use cd
with no arguments if you're using the shell directly, or %cd%
if you want to use it in batch file (behaves like environment var).
这篇关于Windows shell命令获取当前目录的完整路径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文