File() could be finding that file in the FoxPro or DOS path or it may find it in the current directory. At least sys(2000) and adir() will respect the path as specified. My complaint with adir is that it creates memory variables which are not necessarily required.
PS Thanks for the star
>Thanks all for the responses:
>
>Well it looks like the app is somehow finding the file d:\appsvfp_6x\doc9000\documents\released\sop\sop-001_90.doc, which is on the computer JKT01. I don't know how it is finding it. I checked the vfp path and the dos path and the above directory is not in it. I guess I should use Glenn's suggestion concerning the sys() command.
>
>
><i>="\\jkt02\apps_vfp\documents\released\sop\sop-001_90.doc" </i> Doesn't exist!
>thisform.cDocFileName="\\jkt02\apps_vfp\documents\released\sop\sop-001_90.doc"
>file("\\jkt02\apps_vfp\documents\released\sop\sop-001_90.doc") = .t.
>file(thisform.cDocFileName)=.t.
>
>
>
>Kevin