home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #1 / monster.zip / monster / UTIL_ARC / QAZ_230.ZIP / QAZ-DEMO.EXE / QFIND.BAT < prev    next >
DOS Batch File  |  1994-01-13  |  1KB  |  33 lines

  1. @echo off
  2. rem QFIND.BAT - This is a demo of using QAZ to find and list all archives
  3. rem that contain a certain filename.
  4.  
  5. rem QFIND.BAT v2.21b - Vaguer filespecs were removed.
  6.  
  7. rem Usage:  QFIND drive filename
  8.  
  9. rem Use the QAZSPEC environment variable to define the filespecs for QAZ
  10. rem to search for when doing a recursive directory scan with the /ue
  11. rem option (search subdirectories).
  12.  
  13. rem This is done because:
  14. rem  (a) It reduces the search time by having QAZ look at archive specs
  15. rem  (b) Searching _all_ files is problematic since some strange files
  16. rem      may cause QAZ to crash.
  17.  
  18. set qazspec=.ar[cjk] .dwc .exe .gz .ha .[hz]pk .h[ay]p .ice .sit .l[ab]r .li[bm] .lz[hs] .pak .sqz .tar .z .zip .zoo
  19.  
  20. rem Notice the use of extended filespecs...
  21.  
  22. rem In version 2.29ß of QAZ, most of these filespecs are predefined.  One
  23. rem can use the /us+ option instead, or use the /use+ option to add an
  24. rem extra set of filespecs (see the documentation for more specifics).
  25.  
  26. rem Use '/vsi' instead of '/vs' if you don't want a listing of the file. 
  27.  
  28. qaz %1\ %2 /vs /ue+ > qfind.$$$
  29.  
  30. more < qfind.$$$
  31. erase qfind.$$$
  32.  
  33.