试试这个- #@&cls&powershell "type '%~0'|out-string|iex"&pause&exit
- $rar=$env:ProgramFiles+'\WinRAR\RAR.exe'
- $OutputEncoding=[System.Text.Encoding]::GetEncoding(936)
- $a=read-host '请输入当前目录下压缩文件的解压密码:'
- dir -Recurse *.rar,*.001,*.7z,*.zip|%{$a|&$rar x -y -o- $_.FullName $_.Directory}
复制代码
|