home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / os2tk21 / debug / cdinst.cmd next >
Encoding:
Text File  |  1993-04-22  |  935 b   |  39 lines

  1. @echo off
  2. echo  
  3. if "%2" == "" goto nodrive
  4.  
  5. :chkdrive
  6. attrib   %2:\os2ldr.msg  -h -s -a -r
  7. if exist %2:\os2ldr.msg  goto chkdriv2
  8. echo [CDINST]  Error ! - Invalid drive letter specified ... (%2)
  9. goto err_exit
  10.  
  11. :chkdriv2
  12. if exist %1:\os2tk21\debug\dbuginst.exe  goto install
  13. echo [CDINST]  Error ! - Invalid drive letter specified ... (%1)
  14. goto err_exit
  15.  
  16. :install
  17. echo [CDINST]        Installing from drive %1: to drive %2:
  18. echo [CDINST]
  19. pause
  20. %1:
  21. cd \os2tk21\debug
  22. dbuginst.exe %2 /s%1:\os2tk21\debug
  23. goto exit
  24.  
  25. :nodrive
  26. echo [CDINST]  Error ! - No drive letter specified
  27.  
  28. :err_exit
  29. echo [CDINST]
  30. echo [CDINST]  Usage: CDINST.CMD d c
  31. echo [CDINST]
  32. echo [CDINST]     where d is the drive-letter of the CD ROM or remote disk
  33. echo [CDINST]       and c is the drive-letter where OS/2 2.x is installed
  34. echo [CDINST]
  35. echo [CDINST] (Note: You must omit the colon after the drive letters)
  36.  
  37. :exit
  38. echo on
  39.