- ::压缩.BAT
- @ECHO OFF
- SET RAR="C:\Program Files\WinRAR\RAR.exe"
- FOR /F "TOKENS=1,2 DELIMS=|" %%R IN ('TYPE 压缩目录.TXT')DO (
- %RAR% A -INUL -EP1 -P%%S "%%~DPNR.RAR" "%%R"
- )
复制代码
- ::解压缩
- @ECHO OFF
- SET RAR="C:\Program Files\WinRAR\RAR.exe"
- FOR /F "TOKENS=1,2 DELIMS=|" %%R IN ('TYPE 解压目录.TXT')DO (
- %RAR% X -INUL -P%%S "%%R" "%%~DPR"
- )
复制代码
|