[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖
试试将1楼代码13-15行

    if exist "%B_dir%\!file!" (
        echo %B_dir%\!file!
    )

换成

setlocal enabledelayedexpansion
    if exist "!B_dir!\!file!" (
        echo !B_dir!\!file!
    )
endlocal

26-28行的

        if exist "%B_dir%\!file!" (
            del "%B_dir%\!file!"
        )

换成

setlocal enabledelayedexpansion
        if exist "!B_dir!\!file!" (
            del "!B_dir!\!file!"
        )
endlocal
1

评分人数

    • thp2008: 原来是这么会事,弄了我半天。感谢!测试可 ...技术 + 1

TOP

返回列表