home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- REM Read LZE_READ.ME for instructions on how to use this .BAT file.
- REM First make sure it is a COM or EXE file. If so, jump to DOIT
- IF %3==COM GOTO DOIT
- IF %3==EXE GOTO DOIT
- REM If it is neither a COM nor an EXE file EXIT.
- GOTO EXIT
- :DOIT
-
- REM Print the name of the file to be compressed and give the user
- REM the opportunity to skip the current file.
-
- ECHO The next file is %1.
- ECHO If you want to skip this file press CTRL-C to terminate this
- ECHO running of the shellze batch file.
- PAUSE
-
- REM The user wants to do this file, so send it's name to the printer.
-
- ECHO %1 >LPT1
-
- REM Now compress the file.
-
- LZESHELL %1
-
- REM If this is a COM file, jump.
-
- IF %3==COM GOTO DOCOM
-
- REM It is an EXE file, check to see if an .OPK file exists.
- REM and if so, rename it to .OLD.
-
- IF NOT EXIST %2.OPK GOTO EXIT
-
- REM There is a .OPK file so erase the .OLD file and rename .OPK to .OLD
-
- IF EXIST %2.OLD DEL %2.OLD
- REN %2.OPK %2.OLD
- GOTO EXIT
-
- :DOCOM
-
- REM It was a .COM file, so erase the .OLD version and rename
- REM the .COM version to FILENAME.CMM
-
- IF EXIST %2.OLD DEL %2.OLD
-
- IF EXIST %2.EXE REN %2.COM %2.CMM
-
- :EXIT
-
- REM DONE!
-