[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Using WinRAR

Posted on 2012-03-27
3
Medium Priority
?
236 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

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
An introduction to the wonderful sport of Scam Baiting.  Learn how to help fight scammers by beating them at their own game. This great pass time helps the world, while providing an endless source of entertainment. Enjoy!
The Bounty Board allows you to request an article or video on any technical topic, or fulfill a bounty request to earn points. Watch this video to learn how to use the Bounty Board to get the content you want, earn points, and browse submitted bount…
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

649 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