views:

994

answers:

1
+1  Q: 

7-zip commandline

I'm creating a backup utility that zips all the files listed in a textfile. I am using MS ACCESS as my front-end and 7-zip for compression. Everytime i execute this command.

7zG.exe a c:\BAckup\backup.zip @c:\temp\tmpFileList.txt

All the files are compressed without its path. Is there a way to assign the path for each file? so that when backup.zip is extracted the files can easily be recognize what folder they belong.

Thanks

+1  A: 

The command-line program for 7-Zip is 7z or 7za. Here's a helpful post on the options available. The -r (recurse) option stores paths.

Vinay Sajip
Thanks Vinay for the response.. But i cannot find 7za.exe in my 7-zip directory, also 7z.exe has 0 bytes. I used 7zG.exe because it displays a GUI progress bar rather than a DOS screen. The only problem is that its doesn't include the path where the file is located
Arnold