Hello,
Yes, the sms.ini-file exists on a path on the lan-server at g:\....
I didn't know about file() looking down the path, so I'll take your advice and turn to adir()!
Thank you very much,
Ivo Hubert
>Does the SMS.ini exist in another path? If file doesn't find it at the specified location, it will look down the given paths. I stopped using file() long time ago and used adir() instead. That only looks where you tell it.
>
>If that isn't it - then I'm as baffled as you :-)
>
>
>>Hello everyone,
>>
>>In an application I check if a file exists with the file()-funtion.
>>
>>I have used this function for many years, without a problem, all very straightforward.
>>
>>But now I have one application who gives on a workstation a result .T., while the file does not exist on it and has never existed there.
>>
>>It is an NT-workstation and the syntax is:
>>
>>if file("c:\station\sms.ini")
>>endif
>>
>>What is wrong?
>>
>>Best regards,