home *** CD-ROM | disk | FTP | other *** search
- @ECHO OFF
- ECHO.
-
- REM Test of option, and whether files are valid.
-
- IF %1x==x GOTO Error
- IF NOT EXIST %1.ARC GOTO Not_there
- IF NOT %2x==x IF EXIST %2.EXE GOTO Already_there_2
- IF EXIST %1.EXE GOTO Already_there_1
-
- REM Create_the_file
-
- ECHO Create target file ...
- IF 2%x==x COPY /b PKSFX.PGM+%1.ARC 1%.EXE>NUL
- IF NOT 2%==x COPY /b PKSFX.PGM+1%.ARC 2%.EXE>NUL
- ECHO File created.
- GOTO end
-
- REM Error messages
-
- :Error
- ECHO ARC2EXE - Creates self-extracting archive
- ECHO from PKPAK archive.
- ECHO.
- ECHO Application:
- ECHO ARC2EXE archive [Target archive]
- ECHO.
- ECHO Tip:
- ECHO The extensions must not be entered,
- ECHO otherwise the program will not run correctly.
- ECHO.
- ECHO Examples:
- ECHO ARC2EXE TEST - Creates the TEXT.EXE file from TEXT.ARC
- ECHO ARC2EXE FIRST NEW - Creates NEW.EXE from FIRST.ARC
- GOTO end
-
- :Not_there
- ECHO Error!
- ECHO The file %1.ARC cannot be found, processing terminated.
- GOTO end
-
- :Already_there_1
- ECHO Error!
- ECHO The target file %1.EXE is already present, processing terminated.
- GOTO end
-
- :Already_there_2
- ECHO Error!
- ECHO The target file %2.EXE is already present, processing terminated.
-
- :end
- ECHO.
-
-