home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
menu
/
ezmenu2.arc
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-02-02
|
9KB
|
201 lines
echo off
cls
rem INSTALL.BAT
rem EasyMenu Installation Procedure
if not exist AUTOEXEC.NEW goto multi
if "%1" == "" goto start
if %1 == done goto done
:start
if not exist AUTOEXEC.NEW goto quit
cls
echo ┌──────────┐tm ┌────────────────────────────────┬──────────────────┐
echo │ EasyMenu │ │ INSTALL Program │ Ver 2.0 │
echo └──────────┘ └────────────────────────────────┴──────────────────┘
echo (C) Copyright 1986-1988, EasyMenu Publishing
echo
echo Press
echo letter for
echo ┌────┐ ┌──────────────────────────────────────────┐
echo │ L │ │ List READ.ME* files │
echo └────┘ └──────────────────────────────────────────┘
if exist easymenu.txt echo ┌────┐ ┌──────────────────────────────────────────┐
if exist easymenu.txt echo │ M │ │ Print manual │
if exist easymenu.txt echo └────┘ └──────────────────────────────────────────┘
echo ╔════╗ ╔══════════════════════════════════════════╗
echo ║ S ║ ║ SETUP ║
echo ╚════╝ ╚══════════════════════════════════════════╝
echo ┌────┐ ┌──────────────────────────────────────────┐
echo │ Q │ │ Quit to DOS │
echo └────┘ └──────────────────────────────────────────┘
echo
ask LSMQ
cls
if errorlevel 4 goto aborted
if errorlevel 3 goto printman
if errorlevel 2 goto multi
if errorlevel 1 goto readfile
:multi
echo ┌ Select Disk ────────────────────────────────────────────────────────────┐
echo │ │
echo │ DRIVE LETTER to Install? │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
echo DRIVE LETTER
echo ┌────┐ ┌────┐
echo │ A │ │ E │
echo └────┘ └────┘
echo ┌────┐ ┌────┐
echo │ B │ │ F │
echo └────┘ └────┘
echo ╔════╗ ┌────┐
echo ║ C ║ │ G │
echo ╚════╝ └────┘
echo ┌────┐ ┌────┐ ┌────┐ ┌──────────────────────────┐
echo │ D │ │ H │ │ Q │ │ Quit to menu │
echo └────┘ └────┘ └────┘ └──────────────────────────┘
echo
ask HGFEDCBAQ
cls
if errorlevel 9 goto start
if errorlevel 8 setup A
if errorlevel 7 setup B
if errorlevel 6 setup C
if errorlevel 5 setup D
if errorlevel 4 setup E
if errorlevel 3 setup F
if errorlevel 2 setup G
if errorlevel 1 setup H
goto start
:READFILE
if exist READ.ARC type READ.ARC
if exist READ.ARC pause
cls
if exist READ.ME type READ.ME
if exist READ.ME pause
cls
if exist READ.ME1 type READ.ME1
if exist READ.ME1 pause
cls
if exist READ.ME2 type READ.ME2
if exist READ.ME2 pause
cls
if exist READ.ME3 type READ.ME3
if exist READ.ME3 pause
cls
if exist READ.ME4 type READ.ME4
if exist READ.ME4 pause
cls
goto printme
:printme
echo ┌ Print READ.ME files ────────────────────────────────────────────────────┐
echo │ │
echo │ Is the PRINTER ready and online? │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
echo ┌────┐ ┌──────────────────────────────────────────┐
echo │ N │ │ No. Return to INSTALL menu │
echo └────┘ └──────────────────────────────────────────┘
echo ╔════╗ ╔══════════════════════════════════════════╗
echo ║ Y ║ ║ Yes, PRINT the files ║
echo ╚════╝ ╚══════════════════════════════════════════╝
echo
ask YNQ
cls
echo
if errorlevel 3 goto aborted
if errorlevel 2 goto start
echo ┌ PRINTING ───────────────────────────────────────────────────────────────┐
echo │ │
echo │ The READ.ME* files are being printed . . . WAIT │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
if exist INVOICE.TXT echo FILE: INVOICE.TXT > prn
if exist INVOICE.TXT copy INVOICE.TXT prn > NUL
if exist INVOICE.TXT echo > prn
if exist INVOICE.TXT echo INVOICE Printed.
if exist READ.ARC echo FILE: READ.ARC > prn
if exist READ.ARC copy READ.ARC prn > NUL
if exist READ.ARC echo > prn
if exist READ.ARC echo READ.ME Printed.
if exist READ.ME echo FILE: READ.ME > prn
if exist READ.ME copy READ.ME prn > NUL
if exist READ.ME echo > prn
if exist READ.ME echo READ.ME Printed.
if exist READ.ME1 echo FILE: READ.ME1 > prn
if exist READ.ME1 copy READ.ME1 prn > NUL
if exist READ.ME1 echo > prn
if exist READ.ME1 echo READ.ME1 Printed.
if exist READ.ME2 echo FILE: READ.ME2 > prn
if exist READ.ME2 copy READ.ME2 prn > NUL
if exist READ.ME2 echo > prn
if exist READ.ME2 echo READ.ME2 Printed.
if exist READ.ME3 echo FILE: READ.ME3 > prn
if exist READ.ME3 copy READ.ME3 prn > NUL
if exist READ.ME3 echo > prn
if exist READ.ME3 echo READ.ME3 Printed.
if exist READ.ME4 echo FILE: READ.ME4 > prn
if exist READ.ME4 copy READ.ME4 prn > NUL
if exist READ.ME4 echo > prn
if exist READ.ME4 echo READ.ME4 Printed.
goto start
:printman
if not exist easymenu.txt goto start
echo ┌ Check PRINTER ──────────────────────────────────────────────────────────┐
echo │ │
echo │ Is the PRINTER ready and online? │
echo │ │
echo │ 22 pages are required. │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
echo ┌────┐ ┌──────────────────────────────────────────┐
echo │ N │ │ No. Return to INSTALL menu │
echo └────┘ └──────────────────────────────────────────┘
echo ╔════╗ ╔══════════════════════════════════════════╗
echo ║ Y ║ ║ Yes, go ahead and print the MANUAL ║
echo ╚════╝ ╚══════════════════════════════════════════╝
echo
ask YNQ
cls
echo
if errorlevel 3 goto aborted
if errorlevel 2 goto start
echo ┌ PRINTING ───────────────────────────────────────────────────────────────┐
echo │ │
echo │ The MANUAL is being printed . . . WAIT │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
if exist INVOICE.TXT echo FILE: INVOICE.TXT > prn
if exist INVOICE.TXT copy INVOICE.TXT prn > NUL
if exist INVOICE.TXT echo > prn
if exist INVOICE.TXT echo INVOICE Printed.
if exist EASYMENU.TXT copy EASYMENU.TXT prn > NUL
if exist EASYMENU.TXT echo > prn
if exist EASYMENU.TXT echo MANUAL HAS BEEN PRINTED!
goto start
:aborted
echo ┌─────────────────────────────────────────────────────────────────────────┐
echo │ End of EasyMenu installation procedure │
echo └─────────────────────────────────────────────────────────────────────────┘
:done
echo ╔══════════════════╗ ┌────────────────────────────────────┐
echo ║ PROGRAM START: ║ C: │ Drive Letter │
echo ╚══════════════════╝ ├────────────────────────────────────┤
echo CD \EASYMENU │ Change to EasyMenu directory │
echo ├────────────────────────────────────┤
echo EASYMENU │ Starts EasyMenu program │
echo └────────────────────────────────────┘
echo
echo ╔═══════╗
echo ║ OR: ║ Batch startup files are provided.
echo ╚═══════╝ From the root directory of your Fixed Disk, type:
echo
echo ┌───┐ ┌──────┐ ┌──────────┐
echo │ M │ , │ MENU │ , or │ EASYMENU │ to start.
echo └───┘ └──────┘ └──────────┘
:quit