Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if a file exists
Message
 
To
21/10/2017 08:24:14
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Miscellaneous
Thread ID:
01655128
Message ID:
01655139
Views:
72
>From Help file:
>
>Places information about files into an array and then returns the number of files.
>
>
>ADIR(ArrayName [, cFileSkeleton [, cAttribute [, nFlag]]])
>
>3rd and 4th parameter probably unneeded in your case, as file won't be hidden or directory,
>but explained in detail in help file
>
>llFound = adir(laTmp, "*.doc")>0 && including pathname works as well as setting path
>
>>set path to home(c:\global"
>>
>>if adir(*.doc)>0 fie is found
>>ct=1
>>endif
>>
>>if ct is 1 the file is found
>>
>>Am I correct


Thanks

Colin
Specialist in Advertising, Marketing, especially Direct Marketing

I run courses in Business Management and Marketing
Previous
Reply
Map
View

Click here to load this message in the networking platform