回复 6# zltt520 - @echo off
- set info=互助互利,代码可用,支付宝扫码头像,感谢赞助
- rem 有问题,加QQ956535081及时沟通
- title %info%
- start mshta VBScript:Execute("msgbox(""%info%""):close")
- cd /d "%~dp0"
- set "文件夹1=D:\test\A"
- set "文件夹2=D:\test\B"
- for /f "delims=" %%a in ('dir /a-d/b/s "%文件夹1%"') do (
- set "A_file=%%a"
- setlocal enabledelayedexpansion
- set "B_file=!A_file:%文件夹1%=%文件夹2%!"
- if not exist "!B_file!" (
- echo;"!A_file!"
- del /a /f /q "!A_file!"
- )
- endlocal
- )
- for /f "delims=" %%a in ('dir /ad/b/s "%文件夹1%"^|sort /+65535') do (rd "%%a" 2>nul)
- pause
复制代码
|