Hi all,
Is there a way in VB or via an API to get the status of a drive?
I would like to write something along the lines of:
If DriveState("C") = WRITE Then
' drive active, so show "WAIT" form
frmPleaseWait.S how
endIf
' wait for C to stop writing
Do
do Events
Loop While DriveState("C") = WRITE
' unload the WAIT form
UnLoad frmPleaseWait
Any ideas or alternatives?
TIA
GST
Is there a way in VB or via an API to get the status of a drive?
I would like to write something along the lines of:
If DriveState("C") = WRITE Then
' drive active, so show "WAIT" form
frmPleaseWait.S how
endIf
' wait for C to stop writing
Do
do Events
Loop While DriveState("C") = WRITE
' unload the WAIT form
UnLoad frmPleaseWait
Any ideas or alternatives?
TIA
GST
Comment