home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 29 Fixes_o / 29-Fixes_o.zip / xr6110d6.dsk / DBINST.CMD next >
OS/2 REXX Batch file  |  1993-04-10  |  624b  |  33 lines

  1. @echo off
  2. echo  
  3. if "%1" == "" goto nodrive
  4. goto chkdrive
  5.  
  6. :nodrive
  7. echo [DBUGINST]  Error ! - No drive letter specified
  8. goto err_exit
  9.  
  10. :chkdrive
  11. attrib %1:\os2ldr.msg  -h -s -a -r
  12. if exist %1:\os2ldr.msg  goto install
  13. echo [DBUGINST]  Error ! - Invalid drive letter specified ... (%1)
  14. goto err_exit
  15.  
  16. :install
  17. echo [DBUGINST]        Installing to drive %1:
  18. echo [DBUGINST]
  19. pause
  20. %1:
  21. cd \
  22. dbuginst.exe %1
  23. goto exit
  24.  
  25. :err_exit
  26. echo [DBUGINST]
  27. echo [DBUGINST]  Usage: dbinst.cmd  drive-letter
  28. echo [DBUGINST]
  29. echo [DBUGINST] (Note: You must omit the colon after the drive letter)
  30.  
  31. :exit
  32. echo on
  33.