?
Solved

Using WinRAR

Posted on 2012-03-27
3
Medium Priority
?
234 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 40

Accepted Solution

by:
Vadim Rapp earned 800 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

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

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

Finding a job can be stressful - searches, resume tweaks, and networking events can be super boring. Luckily we're here to help you land your dream job!
If you don't know how to downgrade, my instructions below should be helpful.
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…
Simple Linear Regression
Suggested Courses

770 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