- @echo off
- cd /d "%~dp0"
- for /f "delims=" %%i in ('dir /b /s /a-d *.rar *.zip') do (
- for /f "skip=15 delims=" %%a in ('type "%~f0"') do (
- if not defined _"%%~fi" (
- rar x "%%~fi" -hp%%a && set _"%%~fi"=1
- )
- )
- )
- echo 解压完毕!
- pause & exit
-
-
- rem 根据实际情况调整解压行命令
- rem 从第16行(跳过前15行)开始存放密码
- 123
- 456
- 789
复制代码
这样行吗? |