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