Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Directory exist
Message
 
To
23/08/2000 12:47:15
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00408305
Message ID:
00408356
Views:
9
>>>Is there a function in vfp that will tell you if a directory exists in a Netware File server. Thanks
>>
>>Look up DIRECTORY() in the Help.
>>Bill
>
>I need a way to programmatically detect if a directory exists in my vfp program,
>something like the FILE() command I guess.
>Eric

That's what DIRECTORY() does... I have no N: mapped, and the following is an example of what will happen;

?directory('c:\')
.T.
?directory('n:\')
.F.

Also, I have my laptop's C:drive shared as 'C' - the name of the computer is waynem, so;

directory('\\waynem\c') = .T.

HTH
Wayne Myers, MCSD
Senior Consultant
Forte' Incorporated
"The only things you can take to heaven are those which you give away" Author Unknown
Previous
Reply
Map
View

Click here to load this message in the networking platform