
[已解決]將此重命名和壓縮的兩個批處理合并最后由 brothersonline 于 -3-30 01:23求助:將此兩個批處理文件合并批處理1:將拖進去的文件處理后重命名:
批處理2:將拖進去的文件用winrar壓縮,并生成日志:nclick="copycode($('code0'));">復制代碼
- @echo off
- cd /d %~dp1
- ren %~nx1 1.txt &type 1.txt >1&ren 1.txt %~nx1
- ren 1 ★%~nx1 &exit
請高手將兩個批處理合并,即:將批處理1處理后的文件重命名,并用winrar壓縮。謝謝!nclick="copycode($('code1'));">復制代碼
- For /f tokens=2 delims== %%a IN ('ftype^|find WinRAR') DO (
- Set rar=%%a
- Goto :next
- )
- :next
- Set rar=%rar: %1=%
- For %%a IN (%*) DO (
- %rar% a -ibck -v838860 -ep1 -ilogc:.rar.log -inul %%~na %%a
- )

