Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Read-write vs read-only status of network share
Message
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00611252
Message ID:
00611465
Views:
22
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform