home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
cset21v4.zip
/
OS2TK21
/
DEBUG
/
6_307
/
INSTALL.CMD
< prev
next >
Wrap
OS/2 REXX Batch file
|
1993-02-05
|
868b
|
42 lines
@echo off
echo
if "%1" == "" goto notarget
if "%2" == "" goto nosource
goto chkdrive
:notarget
echo [INSTALL] Error ! - No target drive letter specified
goto err_exit
:nosource
echo [INSTALL] Error ! - No source drive letter specified
goto err_exit
:chkdrive
attrib %1:\os2ldr.msg -h -s -a -r
if exist %1:\os2ldr.msg goto install
echo [INSTALL] Error ! - Invalid OS/2 drive letter specified ... (%1)
goto err_exit
:err_exit
echo [INSTALL]
echo [INSTALL] Usage: install target drive-letter source drive-letter
echo [INSTALL]
echo [INSTALL] (Note: You must OMIT the colon after the drive letter)
echo
goto exit
:install
copy %2:\dbinst.cmd %1:\
copy %2:\dbuginst.exe %1:\
echo
echo [INSTALL] Debug Kernel/PM Installation program installed on drive %1:
echo
%1:
cd \
dbinst.cmd %1
goto exit
:exit
echo on