home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 24 DOS / 24-DOS.zip / 4files.zip / 4F-XRAY.BAT < prev    next >
DOS Batch File  |  1995-12-06  |  2KB  |  74 lines

  1. ECHO OFF
  2. IF "%2" == "/N" GOTO ACTION
  3. IF "%2" == "/n" GOTO ACTION
  4. CLS
  5. ECHO .
  6. ECHO      Batch file instructions:
  7. ECHO  ╔══════════════════════════════════════════════════════════════════════╗
  8. ECHO  ║  To avoid this message, use this syntax:  XRAY.BTM filename.ext /N   ║
  9. ECHO  ║ (To configure 4FILES to use this program, type Alt-F10 from 4FILES.) ║
  10. ECHO  ╟──────────────────────────────────────────────────────────────────────╢
  11. ECHO  ║ This batch file sends the given file name to the appropriate archive ║
  12. ECHO  ║ managing utility (AR, LR, ZR, or ZOR) depending on the extension of  ║
  13. ECHO  ║ the archive (ARJ, LZH, ZIP and ZOO respectively).  These utilities   ║
  14. ECHO  ║ may be found in XRAYxxx.ZIP on BBSs; they can list, browse and unar- ║
  15. ECHO  ║ chived files.  Other archive types (ARC, PAK, DWC, LBR and self-     ║
  16. ECHO  ║ extracting archives) are sent to FV.COM, which can list, but not     ║
  17. ECHO  ║ browse or unarchive the files in an archive.                         ║
  18. ECHO  ║                                                                      ║
  19. ECHO  ║ FOR FASTER EXECUTION, you will want to modify the program entries    ║
  20. ECHO  ║ below to include the complete drive:pathspec, to locate each program ║
  21. ECHO  ║ precisely without relying on a PATH search by DOS.                   ║
  22. ECHO  ║                                                                      ║
  23. ECHO  ║ ALSO, if you are NOT using Buerg's LIST or the 4DOS LIST, erase the  ║
  24. ECHO  ║ "REM" preceding "pause" on the second to last line (to prevent the   ║
  25. ECHO  ║ archive data from scrolling off screen).                             ║
  26. ECHO  ║                                                                      ║
  27. ECHO  ╚══════════════════════════════════════════════════════════════════════╝
  28. ECHO .
  29. PAUSE
  30.  
  31. :ACTION
  32. IF "%@EXT[%1]"=="ZIP" GOTO DO-ZRAY
  33. IF "%@EXT[%1]"=="LZH" GOTO DO-LRAY
  34. IF "%@EXT[%1]"=="ARJ" GOTO DO-ARAY
  35. IF "%@EXT[%1]"=="ZOO" GOTO DO-Z00RAY
  36. IF "%@EXT[%1]"=="ARC" GOTO DO-FV
  37. IF "%@EXT[%1]"=="PAK" GOTO DO-FV
  38. IF "%@EXT[%1]"=="DWC" GOTO DO-FV
  39. IF "%@EXT[%1]"=="LBR" GOTO DO-FV
  40. IF "%@EXT[%1]"=="EXE" GOTO DO-FV
  41. GOTO ERROR
  42.  
  43. :DO-ZRAY
  44. ZR.COM %1
  45.  
  46. GOTO END
  47.  
  48. :DO-LRAY
  49. LR.COM %1
  50.  
  51. GOTO END
  52.  
  53. :DO-ARAY
  54. AR.COM %1
  55.  
  56. GOTO END
  57.  
  58. :DO-ZOORAY
  59. ZOR.COM %1
  60.  
  61. GOTO END
  62.  
  63. :DO-FV
  64. FV.COM %1 /p /c
  65. ECHO .
  66. PAUSE
  67.  
  68. GOTO END
  69.  
  70. :ERROR
  71.  
  72. REM PAUSE
  73.  
  74. :END