本帖最后由 娜美 于 2024-5-15 16:22 编辑
回复 28# aloha20200628
大哥哥写了一个用gc的 单测它可以达到30mb/s
返回错误, 我是不是变量没写好 ? 请帮看看- @echo off &setlocal &del /q "allinOne.txt" "bug.txt" 2>nul
- for /f "delims=" %%F in (b.txt) do if not exist "%%~F" (echo,"badFile -- %%F"&echo,%%F>>"bug.txt") else (
- for /f "tokens=1 delims=_" %%a in (' coder.exe -s -a gc -f "%%~F" ') do (
- echo, /// %%~F ///>>"allinOne.txt"
- if /i "%%a"=="utf-8" (
- powershell "$a=gc -readcount 10000000 -enc:UTF8 "%%~F" | ac -enc:default all.tmp"
- ) else if /i "%%a"=="utf-16" (
- powershell "$a=gc -readcount 10000000 -enc:UTF16 "%%~F" | ac -enc:default all.tmp"
- ) else if /i "%%a"=="ansi" (
- powershell "$a=gc -readcount 10000000 -enc:default "%%~F" | ac -enc:default all.tmp"
- )
- )
- echo,>>"allinOne.txt"
- )
- endlocal&pause&exit/b
复制代码
|