Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Does the directory exist?
Message
From
22/09/1999 14:32:54
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00267693
Message ID:
00267696
Views:
23
>I'm having touble figuring out how to determine if a directory exists. I've tried FILE(fullpath) and FILE(fullpath\.) etc...
>
>Any easy way?
>
>TIA

You could use the
IF ADIR( laDir, "C:\TEMP\", "D" ) > 0
   =MESSAGEBOX( "Directory exists" )
 
ENDIF
Be sure to add the following slash. It seems to me though there is an easier way in VFP.
Previous
Reply
Map
View

Click here to load this message in the networking platform