- @echo off
- set rar.exe="C:\Program Files\WinRAR\rar.exe"
- cd /d "D:\含自解压文件的目录\"
-
- for /f "delims=" %%a in ('dir /a-d/b *.exe') do (
- (
- echo Setup="%%~na.chm"
- echo TempMode
- echo Silent=1
- echo Overwrite=1
- ) > .comment
- %rar.exe% c -z.comment -idq "%%a"
- )
-
- del .comment
复制代码
[ 本帖最后由 tireless 于 2009-5-22 15:40 编辑 ] |