用到一个外部工具7z, 论坛有下- @echo off
-
- 7z x password.zip
- pushd password
- for /f "tokens=*" %%i in ('dir /b *.rar *.zip') do (
- 7z x %%i -o%%~ni
- )
- set "/p=<nul>password.txt"
- for /f "tokens=*" %%i in ('dir /s/b/a-d *.txt') do (
- >>password.txt type %%i
- >>password.txt echo,
- )
- move password.txt ..\__password.txt
- popd
- rd /s/q password
- type __password.txt
-
- pause
- exit /b
复制代码
|