Click to See Complete Forum and Search --> : How to check whether the floppy disk is write-protect or not?


whe
May 10th, 2001, 03:25 PM
Who know how to check whether the floppy disk is write-protect or not?

Thanks!

Robin Dude
May 10th, 2001, 07:19 PM
Function IsWriteable() as Boolean
On Error Goto Hmm
Open "A:\Tmp.tmp" for Append as #99
IsWritable = True
Hmmm:
Close #1
if Err = 70 then
*It's not writeable or that file is in use*
Else
Error(Err)
end if
End Function