ObiWanKenobi

noisrev

Nov 7th, 2021
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Add Comment
Please, Sign In to add comment