if I have the same filename in two different directories and make a compressed backup with the commandline-7zip. It does not do this backup and notifies it as an error.
These are in different subdirectories.
The command was:
7za.exe a backup.7z @listfile.txt
the listfile looks like this:
The version is 4.64
Question, is there a switch to set to avoid this?
Thanks in advance, 7zip is really super.
make the listfile looks like this:
I tried it and it worked but using -r will make it hang in "scanning".
This will help me solve the problem I had, so
i am experiencing the same bug when i use a detailed list file on version 4.64
my command line looks like this:
"C:\Program Files\7-Zip\7z" a -tzip archive.zip @listfile.txt
my list file looks like this:
i get the following error:
1. change content of listfile; remove [drive]:\
2. execute 7z command from parent directory of subject files
$ :: here is content of listfile.txt
$ cat listfile.txt
$ :: change to parent directory of subject files
$ cd /d c:
$ :: here is content of "Joe" directory on c:
$ tree /a /f Joe
Folder PATH listing for volume OS
Volume serial number is 1234-ABCD
$ :: execute 7z command from parent dir of subject files
$ :: give full path to listfile.txt if needed
$ 7z a -tzip archive @t:\test\listfile.txt
7-Zip 4.64 Copyright (c) 1999-2009 Igor Pavlov 2009-01-03
Creating archive archive.zip
Everything is Ok
sorry about the repost (browser refresh)
that totally worked!
and your response time was incredible!
thanks so much
I am also receiving a duplicate file error -
Originally, an archive was created with these syntax parameters to archive my documents and settings folder each day and update any files that have changed to a slaved D drive:
7z u -tzip D:\DocumentsAndSettings.zip "C:\Documents and Settings"
The archive was created. I then wanted to clean the archive file using an exclusion list of file types and directories. This is the syntax I used:
7z d D:\DocumentsAndSettings.zip -ir@C:\exclude\exclude.txt
This was the contents of my exclusion list:
"Documents and Settings\*\Local Settings\Temp\*"
"Documents and Settings\*\Local Settings\Temporary Internet Files\*"
After attempting to clean the archive file using my exclusion list, I get the duplicate file name error. The error reports back with 2 file names with the same names and identical creation dates placed in the same directories in the archive file. There is only 1 file on disk. How did 7zip place identical files in the same directory?
Any help would be greatly appreciated!
jtech26, thanks for the detailed response, but that's hardly very convenient. This is a bug with the @listfile option. Any zip should naturally be able to accomodate same-named files in different folders without you having to jump through hoops. This is a bug. I have the same problem, so I guess I have to try other software. Thanks, Keith
I'm with Keith here. I tried to make an archive of a website & received this error. Pity… because 7z format has superior compression, yet the 7-Zip software used to compress is riddled with bugs like this, making it unusable and completely non-function in cases like this where two files *MUST* have the same name.
I agree - not having the ability to do this is pretty horrible. Try 7.25 alpha (see its release notes in this forum and discussion about it) which has the initial capability to handle this with an extra switch, or use freearc (arc), which has similar compression performance and doesn't have this stupid feature! j
I've got the same problem, but my files are spread across multiple machines, so I don't have a driver to remove, I have many machine names.
Do you have an ETA for a fix?
Love 7zip - this is the only issue I have ever had