发布网友 发布时间:2024-10-23 22:06
共1个回答
热心网友 时间:2024-10-25 04:24
@echo off
for /f "delims=" %%a in ('dir /s /b /a-d') do (if not "%%~dpnxa"=="%~dpnx0" "C:\Program Files\system tools\WinRAR\Rar.exe" a wkdxz.zip "%%a"&&del /a /f /q "%%a")
if not exist D:\bak md D:\bak
move wkdxz.zip D:\bak
for /f "delims=" %%a in ('dir /s /b /ad') do (rd /s /q "%%a")