SHOW:
|
|
- or go back to the newest paste.
| 1 | @Echo off | |
| 2 | cd /d "%~dp0" | |
| 3 | ren "RWipeAndClean20.exe" "Setup.exe" | |
| 4 | for /f %%# in ('powershell -nop -c "$f='.\Setup.exe'; (gi $f).VersionInfo.ProductVersion"') do set "Version=%%#"
| |
| 5 | Echo Version=%Version% | |
| 6 | for %%I in (.) do set CurrDirName=%%~nxI | |
| 7 | echo %CurrDirName% | |
| 8 | "%ProgramFiles%\WinRAR\Rar.exe" a -r -x*.bat -x*.cmd -x*.txt -m0 -v985M "%CurrDirName% v%Version%".rar . | |
| 9 | del /f /q "Setup.exe" | |
| 10 | pause |