home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 6 File / 06-File.zip / filtyp.zip / readme.1st < prev   
Text File  |  1994-11-03  |  2KB  |  48 lines

  1. This little external REXX Function (written in REXX) came about during 
  2. my search for an easy way for a REXX program to determine if a specified
  3. drive was FAT, HPFS or a CD-ROM.  The overall consensus seemed to be 
  4. that the only way to do this would be with a "C" program.  There were a 
  5. few problems with this, not the least of which was:
  6. 1) I do not know how to code in "C"
  7. 2) I do not have a "C" compiler for OS/2 available to me.
  8.  
  9. I was also looking for a mechanism that I could distribute freely, which
  10. meant I couldn't use any of the external functions provided by Quercus, 
  11. Watcom or GammaTech.
  12.  
  13. I had just about given up when I noticed that the "Performance 2.1" 
  14. product from "Clear and Simple" was identifying my partitions correctly,
  15. and the programs are all written in pure OS/2 REXX.  I looked into the 
  16. "SEESYS.CMD" program and found out how the author (Tony Pereira) did it. 
  17. It was fiendishly simple and clever.  I used his technique (though not 
  18. his code) to write this little program.  It should be invoked from 
  19. within a REXX program like this:
  20.  
  21.         type = FileType(drivespec)
  22.  
  23. "type" will return FAT, HPFS or CD-ROM.  There is no error checking in 
  24. this program (as you can tell if you look at the source).  If you code 
  25. 'drivespec' incorrectly, the program will cheerfully tell you that it is
  26. a CD-ROM!  'drivespec' should contain the letter *AND* the colon (i.e. 
  27. 'C:').  If you want to add some form of error checking, be my guest.  I 
  28. am releasing this program into the public domain.  I only ask that if 
  29. you make any modifications that you feel will be generally useful to 
  30. please send me a copy of your changes.
  31.  
  32. I recommend that anyone interested in REXX programming to get a copy of 
  33. "Performance 2.1" or "Performance 2.1 Plus" from "Clear and Simple, 
  34. Inc."  It provides useful tuning information and OS/2 tools, as well as 
  35. some wonderfully clever REXX coding techniques.  "Clear and Simple" can 
  36. be contacted at:
  37.  
  38. Clear and Simple, Inc.
  39. P.O. Box 130
  40. W. Simsbury, CT  06092
  41. (203)658-1204
  42.  
  43. "Performance 2.1" should be available wherever you buy your OS/2 
  44. software.
  45.  
  46. Jaime A. Cruz, Jr.
  47. 72267.1372@compuserve.com
  48.