Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Read-write vs read-only status of network share
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Divers
Thread ID:
00611252
Message ID:
00611465
Vues:
23
>Let's say that a user has mapped a network drive to which he has read-only access. Is there an elegant way to programmatically determine the read-only status of that resource? The only way I can think of now is to try and create a new (temporary) file on the mapped drive (for example, with FCreate) and see if it succeeds or not. Isn't there a better way? Thanks very much!!

Mark,
Not really. Not only should you test the ability to write to the directory using FCreate, you should test to see if you have the ability to delete files by attempting to delete the temp file after creation and if the file still exists, you don't.

This information may/may not be important to you.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform