home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo
- if "%2" == "" goto nodrive
-
- :chkdrive
- attrib %2:\os2ldr.msg -h -s -a -r
- if exist %2:\os2ldr.msg goto chkdriv2
- echo [CDINST] Error ! - Invalid drive letter specified ... (%2)
- goto err_exit
-
- :chkdriv2
- if exist %1:\toolkt20\debug\dbuginst.exe goto install
- echo [CDINST] Error ! - Invalid drive letter specified ... (%1)
- goto err_exit
-
- :install
- echo [CDINST] Installing from drive %1: to drive %2:
- echo [CDINST]
- pause
- %1:
- cd \toolkt20\debug
- dbuginst.exe %2 /s%1:\toolkt20\debug
- goto exit
-
- :nodrive
- echo [CDINST] Error ! - No drive letter specified
-
- :err_exit
- echo [CDINST]
- echo [CDINST] Usage: CDINST.CMD d c
- echo [CDINST]
- echo [CDINST] where d is the drive-letter of the CD ROM or remote disk
- echo [CDINST] and c is the drive-letter where OS/2 2.x is installed
- echo [CDINST]
- echo [CDINST] (Note: You must omit the colon after the drive letters)
-
- :exit
- echo on