如何调用批处理文件,这是两个层面从当前目录 [英] How to call a batch file, that is two levels up from the current directory
本文介绍了如何调用批处理文件,这是两个层面从当前目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用一个批处理文件中文件夹1 /文件夹2 / file.bat
有在父文件夹的批处理文件文件夹1
,我想通过 file.bat
打开p>
我已经尝试使用:
开始.. \\ .. \\ code.BAT
不过,这将导致一个错误信息,因为文件无法找到。
任何想法?
解决方案
您可以只:
CD ..
启动code.BAT
和,将其自己的目录启动code.BAT
I'm using a batch file in folder1/folder2/file.bat
There is a batch file in parent folder folder1
, that I want to open through file.bat
I have tried using:
start ..\..\code.bat
But this results in an error message, because file couldn't be found.
Any ideas?
解决方案
You could just:
cd..
start Code.bat
And that would start code.bat from its own directory
这篇关于如何调用批处理文件,这是两个层面从当前目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文