Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Echo off
- cd /d "%~dp0"
- ren "RWipeAndClean20.exe" "Setup.exe"
- for /f %%# in ('powershell -nop -c "$f='.\Setup.exe'; (gi $f).VersionInfo.ProductVersion"') do set "Version=%%#"
- Echo Version=%Version%
- for %%I in (.) do set CurrDirName=%%~nxI
- echo %CurrDirName%
- "%ProgramFiles%\WinRAR\Rar.exe" a -r -x*.bat -x*.cmd -x*.txt -m0 -v985M "%CurrDirName% v%Version%".rar .
- del /f /q "Setup.exe"
- pause
Add Comment
Please, Sign In to add comment