Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watnot!watmath!clyde!rutgers!lll-lcc!seismo!rochester!cornell!batcomputer!hsgj From: hsgj@batcomputer.UUCP Newsgroups: comp.sys.amiga Subject: How to tell if Volume is Mounted? Message-ID: <489@batcomputer.tn.cornell.edu> Date: Tue, 24-Mar-87 20:06:29 EST Article-I.D.: batcompu.489 Posted: Tue Mar 24 20:06:29 1987 Date-Received: Thu, 26-Mar-87 06:44:41 EST Organization: Theory Center, Cornell U., Ithaca NY Lines: 26 Keywords: Volume, Mounted, DeviceList [] Does anyone know how to tell if a Volume is mounted or not? I use my own varient of Phillip Lindsay's GetDisk, which scans through the DeviceLists (headed by DevInfo) and reports all the Volume names. But I can't figure out where in the DeviceList structure the flag for mounted or not-mounted is maintained. It must be there somewhere because the CLI's INFO command can tell. So if I give you either a volume name, or a pointer to a DeviceList (eg from the Volume field in a lock), how could I determine whether the volume was mounted? Thanks very much for any information. [In case this is unclear, put wbench (with C:) in df0:, cd to a floppy in df1:, then eject df1: and type INFO. You'll see that the disk name for the disk formerly in df1: is printed, but it does not say "Mounted" next to it]. ps: On another topic, Thanks very much for all the responses to my 'clever' note on how to decrease Lattice code size. Gosh, I never knew that changing LIBRARY lc.lib,amiga.lib to LIBRARY amiga.lib,lc.lib could make so much of a difference! What a fool I was! Well, as those with mud on our faces always say, if you don't ask, you'll never learn... -- Dan Green -- ARPA: hsgj%vax2.ccs.cornell.edu@cu-arpa.cs.cornell.edu UUCP: ihnp4!cornell!batcomputer!hsgj BITNET: hsgj@cornella