tags:

views:

41

answers:

0

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:

  1. my current working directory:C:\A\B\C\

  2. test.lst located in C:\A\B\C\test.lst

  3. 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

  1. I'm issuing this command from my current working directory:

7z a -r -t7z [email protected] test.7z

  1. 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.