How to call a batch file that is one level up from the current directory?

后端 未结 4 2237
北海茫月
北海茫月 2020-11-22 13:06

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.

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-22 13:53

    ..\ is used to go one level up. your case requires two levels up Try:

    start ..\..\code.bat
    

提交回复
热议问题