Link to home
Start Free TrialLog in
Avatar of VerticalOne
VerticalOneFlag for United States of America

asked on

Using WinRAR

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.
ASKER CERTIFIED SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of VerticalOne

ASKER

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.
It's in the Help file, under "command line mode".User generated image