home *** CD-ROM | disk | FTP | other *** search
/ Current Shareware 1994 January / SHAR194.ISO / dos_util / pck31.zip / ARCVIEW.BAT < prev    next >
DOS Batch File  |  1993-10-01  |  2KB  |  42 lines

  1. echo off
  2. if not "%1"=="" goto ok
  3. cls
  4. echo.
  5. echo ARCVIEW - For reading viewing the contents of files inside archives.
  6. echo Supporting ZIP, ARJ, LZH, ZOO, ARC and PAK (assumes that you have PKZIP etc..)
  7. echo The user is presented with a scrolling menu of filenames from which they
  8. echo can choose to view a particular file.
  9. echo.
  10. echo USAGE: ARCVIEW name [opt1 opt2.. opt8]
  11. echo Where: "name" is the name of the archive, less the extension
  12. echo        "opt1-opt8" are optional extra parameters
  13. echo.
  14. echo e.g. ARCVIEW *            "Match all archives in current dir"
  15. echo      ARCVIEW C:           "Match all archives on drive C:"
  16. echo      ARCVIEW C: /!E       "As above, ignoring executable files in archives"
  17. echo      ARCVIEW SOURCE       "Match archive SOURCE, e.g. SOURCE.ZIP"
  18. echo      ARCVIEW * /W READ*   "Search whole drive, only selecting files
  19. echo                            matching READ* from within archives"
  20. goto exit
  21. :ok
  22. md _a
  23. set _=[?$3# of $F: $13p $8n.$3e $7s $d $t: View?]RQF %2 %3 %4 %5 %6 %7 %8 %9
  24. cls
  25. echo Matching ZIP
  26. d %1.zip\. [pkunzip $l$p$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[z] :_
  27. cls
  28. echo Matching ARJ
  29. d %1.arj\. [arj e $l$r$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[j] :_
  30. cls
  31. echo Matching LZH 
  32. d %1.lzh\. [lha x $l$p$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[l] :_
  33. cls
  34. echo Matching ZOO
  35. d %1.zoo\. [cd _a//zoo -e $l$r$B $f//d $f/q.[ESC ends]//del $f//cd ..]Z[o] :_
  36. cls
  37. echo Matching ARC and PAK
  38. d %1.arc\. %1.pak\. [pkunpak $l$p$B _a\ $f//d _a\$f/q.[ESC ends]//del _a\$f]Z[a] :_
  39. rd _a
  40. set _=
  41. :exit
  42.