Script to unrar… rar files. no kidding.
I’m lazy as fuck so I created a script that unrars rar files and throws those rar files away afterwards, leaving just the directory and the extracted file!
Oh, and the NFO file – I wonder where this might come in handy…
Script does no error checking or there is no warranty that the archive files are left intact when something goes wrong. You know … lazy as fuck :p
setlocal set path="C:\Program Files\WinRAR\";%path% for /F %%i in ('dir /s/b *.rar') do call :do_extract "%%i" :eof echo done! goto end pause :do_extract echo %1 mkdir %~1.extracted pushd %~1.extracted unrar e %1 del /q /f "..\*.r??" del /q /f "..\*.sfv" del /q /f "..\.message" rmdir /q "..\_COMPLETE_-~1" del /s /q /f "..\sample" rmdir /q "..\Sample" move * .. popd rmdir /q "%~1.extracted" :end
Thanks! This saves a lot of time.