How To: Check to see if a Volume is attached. (AREV Specific)
At 22 JAN 2001 02:43:03PM GMotter wrote:
I am attempting to progromatically determine whether a Volume is attached or not. Is there a Virtual table that you can look at to see if a volume is currently attached. I know you can 'listvolumes' from TCL to see the currently attached volumes but am not sure how to access that data from within a program.
An alternative would be to be able to suppress an error message when detaching a volume, but the (s) does not seem to work with the detach TCL command.
Thanks much,
Greg Motter
At 22 JAN 2001 02:51PM WinWin/Revelation Technical Support wrote:
Greg-
In your program, look at a variable named @VOLUMES. This is a field mark delimited list of volumen names that are currently attached. Edit the Volumes or Sysvolumes tables (depending upon your version of Arev) to see other information regarding the volume.
Hope it helps-
Mike Ruane
At 22 JAN 2001 03:12PM Greg Motter wrote:
Thanks very much. Exactly what I needed.
Greg Motter