回复 2# 77七
谢谢提供消息,我看后,研究了一下。自已写的好像还是不对,应该是怎么个写法。- @echo off
- echo.
- set /p pass=请输入当前目录下压缩文件的解压密码:
- echo %pass%>PtempS.txt
- winclip.exe -u -c PtempS.txt
- set "rar=%ProgramFiles%\WinRAR\WinRAR.exe"
- winclip.exe -p | for /f "delims=" %%i in ('dir /b /s *.rar *.001 *.7z *.zip') do "%rar%" x -y -p -o- "%%i" "%%~dpi"
- del PtempS.txt
- pause
复制代码 我一输入含有特殊字符的密码,就自动退出了。
我已下载了第三方工具winclip.exe在放同一目录。 |