首页 > 技术文章 > cmd、bat文件获取当前目录
wulm 2021-06-16 11:43 原文
代码:
cd /d %~dp0
注意:不要省略/d
暂停不退出代码:
pause
转自http://blog.chinaunix.net/uid-20449851-id-133998.html