wingwingso 当前离线
列兵
@echo off set "rarpath=C:\Program Files\7-Zip\7zG.exe" for /f "delims=" %%a in ('dir /b ^|find /v "%~nx0"') do "%rarpath%" a "%%~na" "%%a" pause复制代码
评分人数
GNU 当前离线
上尉
7z.exe a folder.zip folder复制代码
@echo off for /f "delims=" %%i in ('dir /b /ad') do ( 7z.exe a "%%i.zip" "%%i" )复制代码
TOP
@echo off for /f "delims=" %%i in ('dir /b /ad') do ( 7z.exe a "%%i\%%i.zip" ".\%%i\*" )复制代码