cd %~dp0(cd %~dp0)

cd %~dp0 就是进入批处理文件所在目录了

获取bat或cmd脚本文件自身所在目录_Ongoing的博客-CSDN博客 https://blog.csdn.net/zj1060911962/article/details/107624569

————————

CD%~dp0 is the directory where the batch file is located

Get the directory where the bat or CMD script file itself is located_ Ongoing blog – CSDN blog https://blog.csdn.net/zj1060911962/article/details/107624569