home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo
- if "%1" == "" goto nodrive
- goto chkdrive
-
- :nodrive
- echo [DBUGINST] Error ! - No drive letter specified
- goto err_exit
-
- :chkdrive
- attrib %1:\os2ldr.msg -h -s -a -r
- if exist %1:\os2ldr.msg goto install
- echo [DBUGINST] Error ! - Invalid drive letter specified ... (%1)
- goto err_exit
-
- :install
- echo [DBUGINST] Installing to drive %1:
- echo [DBUGINST]
- pause
- %1:
- cd \
- dbuginst.exe %1
- goto exit
-
- :err_exit
- echo [DBUGINST]
- echo [DBUGINST] Usage: dbinst.cmd drive-letter
- echo [DBUGINST]
- echo [DBUGINST] (Note: You must omit the colon after the drive letter)
-
- :exit
- echo on
-