假设解压前运行a.txt,解压后运行b.txt- @echo off
- echo,Presetup=a.txt>$
- echo,Setup=b.txt>>$
- set "rar=%programfiles%\winrar\rar.exe"
- pushd "D:\Test\"
- for /f "delims=" %%a in ('dir /b /s *.exe') do (
- pushd "%%~dpa"
- "%rar%" a -sfx -o- -dw s.exe "%%~nxa"
- "%rar%" c -z"%~dp0$" s.exe
- popd
- )
- del "%~dp0$"
- pause
复制代码
|