home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Hall of Fame
/
HallofFameCDROM.cdr
/
graphic1
/
keydrw-1.lzh
/
INSTALL.BAT
< prev
next >
Wrap
DOS Batch File
|
1990-03-02
|
2KB
|
89 lines
echo off
if %1:==: goto help
if %1==$$$ goto install
set drv=%1:
ECHO ╓───────────────────────────────────────────────────────────────────────╖
echo ║ PC-KEY-DRAW is about to be installed on your hard disk in %1:\KEYDRAW ║
ECHO ╙───────────────────────────────────────────────────────────────────────╜
pause
md %1:\keydraw
copy install.bat %1:\keydraw
if not exist %1:\keydraw\install.bat goto help
cd %1:\keydraw
del %1:install.bat
md %1:library
md %1:tutorial
md %1:wrkspace
copy *.* %1:
if not exist register.ed goto skip
type %1:register.ed>%1:register.ed
:skip
%1:%0 $$$
:install
cls
ECHO Copying of program disk is complete!
set ext=_l1
set lib=Library L-1
cd %drv%library
goto sub
:_l1
set ext=_t1
set lib=Tutorial T-1
cd %drv%tutorial
goto sub
:_t1
if not exist %drv%register.ed goto endm
set ext=_l2
set lib=Library L-2
goto sub
:_l2
set ext=_l3
set lib=Library L-3
goto sub
:_l3
set ext=_l4
set lib=Library L-4
cd %drv%library
goto sub
:_l4
cd a:\
goto :endm
:sub
ECHO ════════════════════════════════════════════════
ECHO Insert disk %lib% into drive A:
PAUSE
if not exist readme.%ext% goto sub
cls
echo Please wait while %lib% is copied to the hard disk
copy *.* %drv%
cls
echo Copying of %lib% is complete!
cd %drv%\keydraw
set lib=
goto %ext%
:endm
%drv%
set ext=
set drv=
kd_util cd @:\library cw @:\wrkspace
cls
ECHO PC-KEY-DRAW is now installed on your hard disk!
ECHO ═══════════════════════════════════════════════
echo You are about to enter the main MENU
PAUSE
menu install
:help
ECHO ╒═════════════════════════════════════════════════════════╕
ECHO │ You must specify a drive letter, such as INSTALL C │
ECHO │ You must specify a drive letter only without a colon ":"│
ECHO ╘═════════════════════════════════════════════════════════╛
:end