Hello all!
I'm trying to batch-extract a large folder of *.rar archives which all have the same password without having to manually enter the password each time. To this end I have managed to install the popular extraction utility 'unrar' and use it via Terminal.
I think I've gotten a handle on using the switches etc, as I have managed to successfully extract one file, without creating a subdirectory, and without having to enter the password (apart from in the single command, obviously...). The next part, applying the 'unrar' command to all 578 files, is proving more difficult...
So the command I'm using is as follows:
Apparently, according to tutorials, this should extract all of the files in the current location to their current directory using the password specified. However, it does something bizzarre - it seems to try to extract a few of the archives in the folder from quite a way down the list and then the process just seems to end:
I think it's the '*' wildcard function that is throwing up issues, as when I replace *.rar for an individual filename, it works perfectly. Obviously, this is no good.
Anyone got any clue as to what I might be doing wrong??
I'm trying to batch-extract a large folder of *.rar archives which all have the same password without having to manually enter the password each time. To this end I have managed to install the popular extraction utility 'unrar' and use it via Terminal.
I think I've gotten a handle on using the switches etc, as I have managed to successfully extract one file, without creating a subdirectory, and without having to enter the password (apart from in the single command, obviously...). The next part, applying the 'unrar' command to all 578 files, is proving more difficult...
So the command I'm using is as follows:
Code:
From within the archives' directory:
unrar e -p[password] *.rar
Apparently, according to tutorials, this should extract all of the files in the current location to their current directory using the password specified. However, it does something bizzarre - it seems to try to extract a few of the archives in the folder from quite a way down the list and then the process just seems to end:
Code:
UNRAR 3.91 freeware Copyright (c) 1993-2009 Alexander Roshal
Extracting from /Users/Me/Folder/Files/archive207.rar
Extracting from /Users/Me/Folder/Files/archive208.rar
Extracting from /Users/Me/Folder/Files/archive209.rar
No files to extract
Peanuts-MacBook-Pro:Frasier Peanut$
I think it's the '*' wildcard function that is throwing up issues, as when I replace *.rar for an individual filename, it works perfectly. Obviously, this is no good.
Anyone got any clue as to what I might be doing wrong??