Hi Gregory,
hm, to reproduce:
Put a USB Memory on (Or, if you have, a floppy disc), set the lock switch to locked, try FCREATE on drives root.
Immediately a dialog comes up notifying the drive is readonly.
But. This was as I started testing on my IDE. Now I've implemented the code just to go the next step and test it. The dialog is gone, and I'm happy. I guess this will depend on some
SETings I do for runtime.
So all is fine.
I figured that out just this minute.
Thank you for your assistance
Agnes
>hi Agnes,
>
>What dialog are you referring to ? Can you give a piece of code and tell where the dialog pops up ?
>__________________________________________________________
>>Hi Gregory,
>>
>>Thank you for your suggestion.
>>this was my first idea. ::)
>>
>>the problem to me is that this will bring up a stupid dialog that I can not trap.
>>
>>Agnes
>>>>Hi All,
>>>>
>>>>how to determine if a (removable)drive is locked (read only)?
>>>>
>>>>TIA
>>>>
>>>>Agnes
>>>
>>>
>>>Agnes,
>>>
>>>There will be better ways, I am sure.
>>>
>>>What I did a few years ago, (for diskette) was to try to create an empty file with fcreate() on that drive.
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]