Excluding an entire directory

Help
2004-11-12
2012-12-07
  • Is there any way of excluding an entire directory instead of only specific files?

    To create the zip I'm using (from a batch file):
    c:
    cd \ "Program Files\7-Zip\7za" a -r -tzip d:\backup\documents.zip "Documents and Settings\Stephen Brooker\My Documents"

    I want to exclude the directory "Documents and Settings\Stephen Brooker\My Documents\My Pictures" as I will back this up seperately.

    TIA.

     
    • Igor Pavlov
      Igor Pavlov
      2004-11-12

      -x!"Documents and Settings\Stephen Brooker\My Documents\My Pictures"

       
    • I feel like a fool now, I was sure I had tried that and it didn't work. Guess I made a mistake somwhere.
      Thanks heaps.