Solved

Using WinRAR

Posted on 2012-03-27
3
231 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
ID: 37773846
add switch -ep1
0
 

Author Closing Comment

by:VerticalOne
ID: 37776523
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
ID: 37776618
It's in the Help file, under "command line mode".screenshot
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Flash Media Live Encoder unreliable encoding start 2 44
some keys in my laptop is not working. any suggestion 6 40
Pay to 支付宝 12 56
Speed reading course 4 15
This story has been written with permission from the scammed victim, a valued client of mine – identity protected by request.
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Articles on a wide range of technology and professional topics are available on Experts Exchange. These resources are written by members, for members, and can be written about any topic you feel passionate about. Learn how to best write an article t…

828 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