home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / lang / pascal / 7633 < prev    next >
Encoding:
Text File  |  1992-12-22  |  1.9 KB  |  48 lines

  1. Newsgroups: comp.lang.pascal
  2. Path: sparky!uunet!mcsun!news.funet.fi!uwasa.fi!ts
  3. From: ts@uwasa.fi (Timo Salmi)
  4. Subject: Re: Determining drive type
  5. Message-ID: <1992Dec22.213426.29022@uwasa.fi>
  6. Organization: University of Vaasa, Finland
  7. References: <34785@adm.brl.mil>
  8. Date: Tue, 22 Dec 1992 21:34:26 GMT
  9. Lines: 37
  10.  
  11. In article <34785@adm.brl.mil> BAKERRE@awc1.eglin.af.mil (Baker, Robert E.) writes:
  12. >    Also, I'm looking for a quick and dirty method for determining the    
  13. >last drive installed on a system rather than depending upon the LASTDRIVE     
  14. >environment variable.
  15.  
  16. Test the exisistence of the root directory of each drive [C,D,E,...]
  17. until not found. 
  18.  
  19. Some additional paraphernalia:
  20.  
  21.   LASTDRFN Get last drive of the system, softcoded, not XTs
  22.   ISDIRFN  Is a name a directory or not (not for DRDOS)
  23.   ISDIR2FN Is a name a directory or not, alternative method
  24.  
  25. Maybe also of interest:
  26.   ACTDRVFN Which floppy drive is active on a one drive system
  27.   DRIVESFN Number of diskette drives on the system
  28.   DSKCNTFN Get the number of disk devices (MsDos 3.0+)
  29.   FDRIVEFN The name of the first diskette drive on the system
  30.   FIXEDFN  Is a drive a fixed disk or not
  31.   FLOPSTFN Floppy disk status. Is it present and formatted.
  32.   INDRIVFN Is a media present in the given drive
  33.   ISUBSTFN Is a drive a substituted drive (MsDos 3.1+)
  34.   MEDIAFN  What kind of a disk media is present in a drive
  35.  
  36.   99367 Nov  8 19:13 garbo.uwasa.fi:/pc/ts/tspa3140.zip
  37.  101110 Nov  8 19:13 garbo.uwasa.fi:/pc/ts/tspa3150.zip
  38.  103186 Nov  8 19:13 garbo.uwasa.fi:/pc/ts/tspa3155.zip
  39.  103345 Nov  8 19:13 garbo.uwasa.fi:/pc/ts/tspa3160.zip
  40.  
  41.    All the best, Timo
  42.  
  43. ..................................................................
  44. Prof. Timo Salmi      Co-moderator of comp.archives.msdos.announce
  45. Moderating at garbo.uwasa.fi anonymous FTP archives 128.214.87.1
  46. Faculty of Accounting & Industrial Management; University of Vaasa
  47. Internet: ts@uwasa.fi Bitnet: salmi@finfun   ; SF-65101, Finland
  48.