Hi,
I'm trying to archive a list of files from multiple directories while preserving the folder locations. The list of files are contained within test.lst.
Scenario:
my current working directory:C:\A\B\C\
test.lst located in C:\A\B\C\test.lst
test.lst contains the following list of files to be archived:
C:\A\B\C\hello.txt
C:\A\B\hello.txt
C:\A\hello.txt
or ....\hello.txt
..\hello.txt
.\hello.txt
- I'm issuing this command from my current working directory:
7z a -r -t7z [email protected] test.7z
- Issuing the command, I keep getting the following error:
C:\A\B\C>7z a -r -t7z [email protected] test.7z
7-Zip 4.42 Copyright (c) 1999-2006 Igor Pavlov 2006-05-14
Scanning
Creating archive test.7z
Error: Duplicate filename: hello.txt hello.txt
Is this operation even possible with 7z?
Any help is greatly appriciated.