|
|
发表于 2023-5-11 17:01:59
|
显示全部楼层
本帖最后由 tmplinshi 于 2023-5-11 19:42 编辑
- @echo off
- setlocal
- :: 设置文件夹路径,默认为批处理所在目录
- set folder="%~dp0"
- cd /d %folder%
- call :SumFiles
- for %%i in (*.epub) do call :Repair "%%i"
- echo 修复完毕。按任意键退出...
- pause >nul & exit /b
- :Repair <file>
- set /a fileIndex += 1
- echo [%fileIndex%/%fileTotal%] 正在修复文件 "%~n1"...
- "%~dp0\SigilRepair.exe" /file "%~1"
- exit /b
- :SumFiles
- set /a fileIndex = 0, fileTotal = 0
- for %%i in (*.epub) do (
- set /a fileTotal += 1
- )
- exit /b
复制代码 SigilRepair.exe 是用 AHK 写的,使用了 UIA 来操作界面按钮。
链接: https://pan.baidu.com/s/1jIzUFZTCWGLrN-FRaFiR4Q?pwd=dvz4 提取码: dvz4 |
评分
-
查看全部评分
|