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

  1. @echo off
  2. echo  
  3. if "%1" == "" goto notarget
  4. if "%2" == "" goto nosource
  5. goto chkdrive
  6.  
  7. :notarget
  8. echo [INSTALL]  Error ! - No target drive letter specified
  9. goto err_exit
  10.  
  11. :nosource
  12. echo [INSTALL]  Error ! - No source drive letter specified
  13. goto err_exit
  14.  
  15. :chkdrive
  16. attrib %1:\os2ldr.msg  -h -s -a -r
  17. if exist %1:\os2ldr.msg  goto install
  18. echo [INSTALL]  Error ! - Invalid OS/2 drive letter specified ... (%1)
  19. goto err_exit
  20.  
  21. :err_exit
  22. echo [INSTALL]
  23. echo [INSTALL]  Usage: install  target drive-letter source drive-letter
  24. echo [INSTALL]
  25. echo [INSTALL]  (Note: You must OMIT the colon after the drive letter)
  26. echo 
  27. goto exit
  28.  
  29. :install
  30. copy %2:\dbinst.cmd   %1:\
  31. copy %2:\dbuginst.exe %1:\
  32. echo  
  33. echo [INSTALL]  Debug Kernel/PM Installation program installed on drive %1:
  34. echo 
  35. %1:
  36. cd \
  37. dbinst.cmd %1
  38. goto exit
  39.  
  40. :exit
  41. echo on
  42.