relative path in BAT script

后端 未结 5 1474
囚心锁ツ
囚心锁ツ 2020-12-22 16:44

Here is my own program folder on my USB drive:

Program\\
     run.bat
     bin\\
         config.ini
         Iris.e         


        
5条回答
  •  萌比男神i
    2020-12-22 16:57

    I have found that %CD% gives the path the script was called from and not the path of the script, however, %~dp0 will give the path of the script itself.

提交回复
热议问题