Jump to content

Recommended Posts

Posted

I was hoping someone could write a really batch file (or something simply) to parse through the subfolders of a directory and unrar everything in them to a common folder that I choose.

Thanks

]Bonkers[


Posted

@echo off
setlocal
if "%1"=="" goto usage
if "%2"=="" goto usage
if not exist %1 goto iesrc
for /f "delims=;" %%i in ('dir /b /ad %1') do (unrar e -o+ -inul %1\%%i\*.rar %2)
goto end
:usage
echo unrargui sourcefolder destinationfolder
goto end
:iesrc
echo sourcefolder %1 does not exist
goto end
:end
endlocal

This should do the job. If you don't want the error management remove all line except the one begining with for.

Posted

Thanks allen2 for the program. I also came across a program called Unpacker that works nicely as well. Both will have their use :).

]Bonkers[

Guest WebMadman
Posted (edited)

...

Edited by WebMadman

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...