去掉了wfr.exe 只用SPLIT.EXE。应该可以了。- @echo off
- :loop
- setlocal enabledelayedexpansion
- set/p file=请把要处理的文件拖到此处:
- for /f "delims=" %%a in ("%file:"=%") do (
- md "%%~na"
- split -b 99k "%file:"=%" "%%~na\%%~na_"
- ren "%%~na\*" "*.txt"
- set "name=%%~na"
- )
- for /f "delims=" %%a in ('dir /b /s /on "%name%\*.txt"') do set/a n+=1&set "_!n!=%%a"
- set/a n-=1
- for /l %%i in (1 1 %n%) do (
- set/a x=%%i+1
- findstr /v $ "!_%%i!">tmp&findstr $ "!_%%i!">tmp1
- move /y tmp1 "!_%%i!"
- (type tmp&echo.&call type "%%_!x!%%")>tmp2
- call,move /y tmp2 "%%_!x!%%"
- )
- del tmp
- endlocal
- pause
复制代码
|