Hi Borislav,
I thought SYS(2000 always return from disc, not inside the app? My problem simply was that the files I was checking for where could be found via SYS(2000. I guess Sergeys message should solve the problem.
Thanks anyway
Agnes
>>Hi all,
>>
>>how can I determine that a file is inside the app?
>>
>>The file exists inside and outside the app and will be found using FILE() as well as SYS(2000,).
>>
>>Agnes
>
>Try:
>
>TEXT TO lcSTRING NOSHOW
> LPARAMETERS lcFullFileName
> RETURN NOT EMPTY(SYS(2000,lcFullFileName))
>ENDTEXT
>IF EXECSCRIPT(lcSTRING,[c:\somefile.txt])
> ** File Exists
>ELSE
> ** File Does not Exists
>ENDIF
>
>
>Not tested at all :-)
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]