ruoru376 当前离线
上等兵
bailong360 (zhonghua)当前离线
上尉
TOP
pcl_test 当前离线
荣誉版主
@echo off setlocal enabledelayedexpansion for %%a in (*.txt) do ( set "s=!s!"%%a"," set /a n+=1 ) set /a m=100/n set /a m-=1 for %%b in (!s!) do ( for /l %%c in (1 1 %m%) do ( copy %%b "%%~nb(%%c)%%~xb" ) ) pause复制代码
@echo off ::指定WinRAR安装路径和程序 set "rarpath=C:\Program Files\WinRAR\rar.exe" "%rarpath%" a "tmp.rar" *.txt for %%a in (*.txt) do set /a n+=1 set /a m=100/n set /a m-=1 for /l %%b in (1 1 %m%) do ( "%rarpath%" e -or "tmp.rar" ) del "tmp.rar" /f /q 2>nul pause复制代码