如何调用当前目录上一级的批处理文件? [英] How to call a batch file that is one level up from the current directory?
本文介绍了如何调用当前目录上一级的批处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 folder1/folder2/file.bat
父文件夹folder1
中有一个批处理文件,我想通过file.bat
There is a batch file in parent folder folder1
, that I want to open through file.bat
我试过使用:
start ....code.bat
但这会导致错误消息,因为找不到文件.
But this results in an error message, because file couldn't be found.
有什么想法吗?
推荐答案
你可以:
cd..
start Code.bat
这将从它自己的目录启动 code.bat
And that would start code.bat from its own directory
这篇关于如何调用当前目录上一级的批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文