home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / comp / os / os2 / programm / 4385 < prev    next >
Encoding:
Internet Message Format  |  1992-08-22  |  1.4 KB

  1. Xref: sparky comp.os.os2.programmer:4385 comp.os.os2.misc:27998 comp.os.os2.apps:5468
  2. Path: sparky!uunet!vnet.ibm.com
  3. From: bigred@vnet.ibm.com (Greg Forney  bigred@vnet.ibm.com)
  4. Message-ID: <19920822.101051.806@almaden.ibm.com>
  5. Date: Sat, 22 Aug 92 13:05:44 EDT
  6. Newsgroups: comp.os.os2.programmer,comp.os.os2.misc,comp.os.os2.apps
  7. Subject: Re: Available drives on the system
  8. Reply-To: bigred@vnet.ibm.com (Greg Forney)
  9. Organization: IBM
  10. Lines: 25
  11.  
  12. Disclaimer: This posting represents the poster's views, not those of IBM
  13. News-Software: UReply 3.0
  14. X-X-From: bigred@vnet.ibm.com (Greg Forney)
  15. References: <1992Aug21.215508.17242@gmuvax2.gmu.edu>
  16.  
  17. In <1992Aug21.215508.17242@gmuvax2.gmu.edu> Srinivas Savaram writes:
  18. >HI:
  19. >
  20. >I need to find out the hardware configuration of the machine from my program.
  21. >I need to know what kind of floppy drives are present on the system.
  22. >Is there a hard disk available. IF yes, then what are the different
  23. >partitions. I also need to know if there are two floppy drives or just
  24. >one? I would appreciate any help .
  25. >
  26. >Thanks..
  27. >
  28.  
  29. You were not very clear about what sort of program you were writing.
  30. The Rexx language included with OS/2 could assemble such info for
  31. you by scanning all possible drive letters a-Z with the SysDriveInfo
  32. function. Look in the Info folder within the Rexx book in the
  33. RexUtils section. There are lots of useful functions in it and I
  34. would expect the list to expand in the future.
  35.  
  36. GregF
  37.