>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