Some time ago, I posed a queston in this newsgroup regarding how to determine
if a drive was readonly. The only way I had found was to try to create a
directory or file then chedk if an error was encountered. The replies were
that this was acceptable. However, it takes time to do this. Since I found
a way, which probably most know already but for those new to VB.Net, here it
is:
'Note r is a string equal to root directory on drive being checked, i.e.,
"d:\"
If (new directoryinfo(r).attributes and fileattributes.ReadOnly) > 0 then
'drive/storage is readonly
Else
'drive/storage can be written to
End If
--
Dennis in Houston