Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 874611
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T11:07:53+00:00 2026-05-15T11:07:53+00:00

On a Windows box, I need to extract a RAR archive so that individual

  • 0

On a Windows box, I need to extract a RAR archive so that individual files in it go into specific directories. I can provide, say, a text file that lists each file and the target directory for it? Then I need help creating a batch file that will actually extract these files into their target locations.

E.g.
RAR archive x.rar contains

a.a
b.b
c.c

Text file x.txt says

a.a   C:\foo
b.b   C:\bar
c.c   C:\foo

Result of running batch file on x.rar and x.txt should be:

  • in C:\foo we have a.a and c.c
  • in C:\bar we have b.b
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T11:07:54+00:00Added an answer on May 15, 2026 at 11:07 am

    You can pass rar a list of file names to extract with -n@<listfile>. So if you create a single file for each directory you want to extract to this should be a viable option. However, the file you describe to have doesn’t quite match the format; you’d need to group it by target directory (much more fun in PowerShell by the way).

    However, if the archive you’re extracting is a solid archive this will take far longer since you essentially have to decompress the whole archive over and over again.

    The best and probably easiest method would then probably to extract the archive once and then sort all files in their respective directories.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to ssh into a Windows 7 box running MobaSSH as its SSH
What happens on a Windows box once you add more drives than can fit
My code processes all the files in a folder on a Windows box. I
I need to set up sqllite for Perl on a Windows box. However -
I've got a Windows C# program that I want to extract a file (or
I need to install PHP 5.3.x (preferably x >= 4) on Windows box running
I need a means of obtaining the local IP Address (Windows box listed in
I have a Windows box that is running three applications. When the applications are
Note that this has to be on a windows box as I am using
I'm modifying files on a UNIX system and accessing them on a Windows box.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.