Solved

Using WinRAR

Posted on 2012-03-27
3
223 Views
Last Modified: 2013-11-13
I need to use WinRAR to make an archive for delivery of programmed materials to our users. The basic command I am using is c:\program files\WinRAR\WinRAR.exe" A -r sfx "C:\Path to place the exe" "C:\Path to folder holding files\*"

This compresses the files fine including the folder structure inside the folder. However what I want is that when the archive extracts it should extract only the folder inside the target source files folder. To explain, when my user downloads the file to the desktop and then double clicks the archive I only want it to make a folder of * as listed above. I do not want it to contain the full folder on my source machine where the target source files were located but on the structure of the folder that I compressed. This happens when I use the GUI interface with WinRAR but we need this to run from command line so we can automate the process.
0
Comment
Question by:VerticalOne
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 200 total points
Comment Utility
add switch -ep1
0
 

Author Closing Comment

by:VerticalOne
Comment Utility
This was perfect - thank you! I had spent an hour on Google trying to figure it out and also looked through the docs with the program and had no luck.
0
 
LVL 40

Expert Comment

by:Vadim Rapp
Comment Utility
It's in the Help file, under "command line mode".screenshot
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Saved searches can save you time by quickly referencing commonly searched terms on any topic. Whether you are looking for questions you can answer or hoping to learn about a specific issue, a saved search can help you get the most out of your time o…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now