From: tholen@antispam.ham   
      
   "James J. Weinkam" writes:   
      
   >> Steve Wendt wrote:   
      
   >>>> zip -r ABC.ZIP M:\*.abc   
   >>>> zip warning: name not matched: M:\*.abc   
      
   >>> The recursion is for paths, not file patterns.   
      
   >> I'm not following you. The wildcard works fine within a directory,   
   >> and the addition of -r supposedly recurses into subdirectories.   
      
   >>> I think you need to use the -i option:   
   >>>   
   >>> Include and Exclude:   
   >>> -i pattern pattern ... include files that match a pattern   
   >>> -x pattern pattern ... exclude files that match a pattern   
      
   >> Tried it without success.   
      
   >>>> It's an old zip (2.0.1 by Kai Uwe Rommel)   
      
   >>> No idea if that old version has the -i option.   
      
   >> It does, along with the -x option. It also has the -@ option,   
   >> which reads from standard input, so I was able to get the desired   
   >> effect by using the DIR command and piping its output to zip with   
   >> the -@ option.   
      
   > zip -r g:\test e:\ -i *.pdf   
   >   
   > works here.   
      
   Which version of zip? Doesn't work here:   
      
   zip -r test.zip m:\ -i *.abc   
   zip warning: name not matched: m:\   
      
   zip error: Nothing to do! (test.zip)   
      
      
   --- Internet Rex 2.31   
    * Origin: Aioe.org NNTP Server (1:261/20.999)   
|