Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Code for find a file in certain directory
Message
From
11/07/2002 20:19:56
 
 
To
11/07/2002 20:14:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00677804
Message ID:
00677807
Views:
20
>>Hi..this is the first time I come here and ask for help
>>I would love to know if there is any code in foxpro that can help me to find a file in certain directory.
>>the path of the directory is given.....could foxpro can get there to see if certain .dbf file is there. if yes it can return true or something.............

Welcome, Po.

you can do something like this:
If File("c:\YourDir\YourFile.dbf")
  *-- it does exists
else
  *-- it does NOT exits
endif 
Alternatively, you can use the ADir() function, in order to know all the files in a given directory.
Claudio Lassala
Previous
Reply
Map
View

Click here to load this message in the networking platform