home *** CD-ROM | disk | FTP | other *** search
/ ZIP KIT / ZIP_KIT.iso / bat / issfx.bat < prev    next >
Encoding:
DOS Batch File  |  1994-01-12  |  355 b   |  25 lines

  1. @ECHO OFF
  2. REM
  3. REM IsSFX.BAT
  4. REM Checks whether a file is an LHA SFX file
  5. REM
  6. If %1x==x GOTO End
  7. IF not exist %1 GOTO Not_there
  8.  
  9. LHA t %1
  10. IF ERRORLEVEL 1 GOTO Not_an_archive
  11. ECHO The file %1 is an SFX archive
  12. GOTO End
  13.  
  14. :Not_an_archive
  15. ECHO %1 is not an LHA archive
  16. GOTO End
  17.  
  18. :Not_there
  19. ECHO File %1 not found.
  20. GOTO End
  21.  
  22. :End
  23. ECHO.
  24.  
  25.