摘要: 范围: %cd%:批处理脚本(bat脚本)、命令行窗口 %~dp0:批处理脚本(bat脚本) bat脚本执行时,两者代表的值是否会变化: %cd%:会。因为代表的是当前目录 %~dp0:不会。因为代表的是脚本文件在磁盘的位置 bat延迟变量 样例 setlocal EnableDelayedExpa 阅读全文
posted @ 2017-11-08 09:01 AlisonGavin 阅读(1377) 评论(0) 推荐(0) 编辑