Hi Cecil,
curdir() of course returns only the directory, not the drive. I haven't read all the (many) followup messages, but could this be an issue?
There is an undocumented SET command, SET("DIRECTORY"), which will provide you with the full path, including the drive.
hth,
Hank Fay
>I have a part of a program which seems to work fine on everyone's machines, but it won't work on the XP machine on which I am typing this post.
>
>My code was something like:
>
>
>IF FILE(CURDIR() + "DEV.TXT")
> .lDeveloper = .T.
>ELSE
> .lDeveloper = .F.
>ENDIF
>
>
>I use this to turn on a menu item to "
Exit to the FoxPro" desktop from a running program, otherwise, the whole program quits to the Windows Desktop.
>
>I see that the first condition turns out to be FALSE. IF FILE(CURDIR() + "DEV.TXT")
>
>The value is "\DEV\IVF_ADV\DEV.TXT" but perhaps the drive letter also needs to be there?
>
>There is a file called DEV.TXT in that specific location, but perhaps because the drive letter doesn't show, the FILE() function may fail.