首页->【软件工具包使用(SW/Software Tools Usage)】

2 1


以下为代码部分,对rar,zip、gz等压缩文件进行批量解压缩。在使用时,应该讲此文件放到对应的文件夹中。

======================================================

rem OpenRight
rem  BATNAME: All files Copy from FileList
rem @echo off

rem Create BAT FILE PLS Read the 7z.help carefully.
rem setting tool path
set rarPath=%C:\Program Files (x86)%\7-Zip\7z.exe
rem setting data path
set dirPath=C:\Users\tester
rem run
for /f "delims=" %%a in ('dir /a-d/s/b *.rar,*.zip,*.gz') do "%rarPath%" e  "%%~a"  -y
pause
rem end

of file

楼主可见

  1. shwnyoo 1#

    批量压缩bat实例