>>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
>
>adir(laResults, "MyDir.*", "D") will put the results into array laResults. The return value is numeric equal to the number of matches to the mask.
There could be an easier way from the good old days of DOS (remember then?):
if file("c:\xxxx\nul") && where xxxx is your directory name
messagebox("Exists")
else
messagebox("N/G")
endif
You could also test for "prn" or some other things but the above works.
Steven Herbin
SNH Computing Corporation
Swan Lake, NY