home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / os2 / misc / 43597 < prev    next >
Encoding:
Text File  |  1993-01-22  |  2.1 KB  |  71 lines

  1. Newsgroups: comp.os.os2.misc
  2. Path: sparky!uunet!paladin.american.edu!gatech!swrinde!sdd.hp.com!ux1.cso.uiuc.edu!news.cso.uiuc.edu!uxa.cso.uiuc.edu!jst50986
  3. From: jst50986@uxa.cso.uiuc.edu (Jack S. Tan)
  4. Subject: Re: Trouble installing high res in OS2.1b
  5. References: <1993Jan17.052213.9738@magnus.acs.ohio-state.edu> <sheldon.727252740@pv141b.vincent.iastate.edu> <C10EE5.CI3@news.cso.uiuc.edu> <1993Jan20.224141.22151@midway.uchicago.edu> <C18sp1.Cyw@news.cso.uiuc.edu>
  6. Message-ID: <C19oG9.CFL@news.cso.uiuc.edu>
  7. Sender: usenet@news.cso.uiuc.edu (Net Noise owner)
  8. Organization: University of Illinois at Urbana
  9. Date: Fri, 22 Jan 1993 17:55:20 GMT
  10. Lines: 59
  11.  
  12. Here is the REXX script for tricking OS/2 into thinking that the GA disks
  13. are in drive A.
  14.  
  15. ----- GA_DISKS.CMD -----
  16.  
  17. /*  GA_DISKS.CMD
  18.     This tricks OS/2 into thinking the GA disks are placed in drive A
  19. */
  20. "@Echo OFF"
  21.  
  22. /*  Pick the correct diskette size for drive */
  23. /*  DISK_SIZE = "3.5"  */
  24.     DISK_SIZE = "5.25"
  25.     DRIVE     = 'A'
  26.  
  27. if  (DISK_SIZE = "5.25") then
  28.   do
  29.     FIRST_DISK =  7
  30.     LAST_DISK  = 18
  31.   end /* do 5.25" */
  32.  
  33. else if  (DISK_SIZE = "3.5") then
  34.   do   /*  not sure if these are correct  */
  35.     FIRST_DISK =  6
  36.     LAST_DISK  = 16
  37.   end /* do 3.5" */
  38.  
  39. else
  40.   do
  41.     SAY "You need to set the diskette size before running this."
  42.     SAY "Edit 'GA_DISKS.CMD' to set the size."
  43.     EXIT
  44.   end /* do error message*/
  45.  
  46.  
  47. SAY "Place a scratch diskette in drive" DRIVE
  48. "pause"
  49.  
  50. diskCounter = FIRST_DISK
  51. DO UNTIL (diskCounter = LAST_DISK)
  52.   "LABEL" DRIVE":DISK" diskCounter" & pause"
  53.   diskCounter = diskCounter+1
  54. end /* do until */
  55.  
  56. /*  Take care of the last disk  */
  57. "LABEL" DRIVE":DISK" diskCounter
  58. "EXIT"
  59.  
  60. ------------------------
  61.  
  62. In writing this, I noticed that FORMAT and LABEL do not use the same
  63. conventions for volume labels.  In FORMAT (with the /V switch), the
  64. volume label is enclosed in quotes if there are spaces in the label.
  65. In LABEL, the volume label is not, even if there are spaces.
  66.  
  67. -- 
  68.  
  69. Jack Tan                             If your parents didn't have kids,
  70. jahk@uiuc.edu                          chances are you won't either.
  71.