>>>How do I check whether the file c:\colinfile.xls exists
>>
>>Got it
>>
>>If file()
>
>For your information, file() doesn't always respect the folder you specify. If a file with the given name is in your current path, file() may return true, although you specify another folder. Adir() is a much better choice.
Aside from the path, there's also the bit about files that are included into the project (i.e. built into APP/EXE/DLL) always exist -- regardless of the folder you specify for it as parameter to FILE() function -- so in this case ADIR() is what you'll need to use to get the correct result.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only