Uh...
I forgot to tell you. I tried the above code with a 32MB flash stick 
(locked) and I got that stupid message.
Later I tried with a CD and it is working. The function returns FALSE 
(which means that I have no write-access) and I don't get that error 
message.
So the error is related with that USB Flash stick.

There is another way to silently detect if a drive/folder is read-only?

_______________________________________________
Delphi mailing list -> [email protected]
http://lists.elists.org/cgi-bin/mailman/listinfo/delphi

Reply via email to