Menu

Unable to exclude directories

Help
ArthurII
2007-02-08
2012-12-07
  • ArthurII

    ArthurII - 2007-02-08

    Hi, I am unable to properly exclude directories, can anybody help?

    I am using the following commands:

    cd c:\ 7z a -mx5 -r -tzip -oc:\Windows\Desktop Zip1 @Swpiau\Rhestr.txt -xr@Swpiau\Dim.txt

    Rhestr.txt is as follows:

    progra~1\proxom~1\Lists\*.*
    windows\applic~1\identi~1\{D1264~1\Micros~1\Outloo~1\*.*
    windows\sendto\*.*
    d:\fynogf~1\*.*

    Dim.txt is as follows:

    d:\fynogf~1\Archifau\*.*
    d:\fynogf~1\Cerddo~1\*.*
    d:\fynogf~1\Darlun~1\*.*
    d:\fynogf~1\Fideo\*.*
    d:\fynogf~1\Lawrlw~1\*.*
    d:\fynogf~1\Podled~1\*.*

    Unfortunately 7z is still archiving the files that I wish to exclude on my logical d:\ drive; why is this? and can you give me a command line that will actually work; thank you.

     
    • ArthurII

      ArthurII - 2007-02-19

      Hi again,
            I'm still having problems with getting 7z working with excluded directories; it still does not exclude the files/directories I want, even though I have made a few amendments to the script; could you have a quick look through it?  Thank you, arthurii.

      cd c:\ 7z a -mx5 -r -tzip -oc:\Windows\Desktop -wc:\ Den @Swpiau\Rhestr.txt
      cd d:\ d:\ 7z a -mx5 -r -tzip -oc:\Windows\Desktop -wd:\ Den2 @c:\Swpiau\Rhestr2.txt -xr@c:\Swpiau\Dim.txt

      Rhestr.txt:

      progra~1\proxom~1\Lists\*.*
      windows\applic~1\identi~1\{D1264~1\Micros~1\Outloo~1\*.*
      windows\sendto\*.*

      Rhestr2.txt:

      d:\fynogf~1\*.*

      Dim.txt:

      d:\fynogf~1\Archifau\*.*
      d:\fynogf~1\Cerddo~1\*.*
      d:\fynogf~1\Darlun~1\*.*
      d:\fynogf~1\Fideo\*.*
      d:\fynogf~1\Lawrlw~1\*.*
      d:\fynogf~1\Podled~1\*.*

       
    • Nobody/Anonymous

      One comment:  Don't use *.* - 7-Zip's file matching algorithms interpret that as "any filename with a . in it".  Any files with no extension will be skipped.

       

Log in to post a comment.