Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Locked removable
Message
De
23/10/2003 05:11:36
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
23/10/2003 04:05:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00840941
Message ID:
00841450
Vues:
23
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.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform