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
From stackoverflow
-
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.
Arnold : 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
0 comments:
Post a Comment