Reputation: 210
I searched with Google but I didn't find something for Windows.
How can I extract several files into several folders?
For example: a.zip
, b.zip
and c.zip
into the folders a
, b
and c
.
I am looking for a command prompt command or a batch file solution.
Thanks
Upvotes: 2
Views: 14418
Reputation: 49086
With using WinRAR in GUI mode:
In case of you want to know more about those extracting options, click before on button Help.
Or use from command line with current directory containing the *.zip files and all archive files which should be also extracted into subfolders of current directory with name of ZIP file as folder name:
"%ProgramFiles%\WinRAR\WinRAR.exe" x -ad -cfg- -ibck *.zip
How to build such a WinRAR command line?
<command>
in text editor or command prompt window by most suitable command letter for the task.-<switch1> -<switchN>
in text editor or command prompt window by those switches which are useful for the task.The short explanation of the most important switch -ad
for this task is:
-ad append archive name to destination path
As it can be seen here, WinRAR supports even a wildcard pattern as archive file name for extracting all archives files matching the pattern.
One more method exists with shell integration enabled as by default after installation of WinRAR.
Upvotes: 3