Neil,
GETENV("USERPROFILE") + "\DESKTOP\"
is only the "normal" location. One can redirect.
Agnes
>Hi,
>A better way:
>
>lcFile="YourFile.doc"
>lnFileHandle=FCREATE(GETENV("USERPROFILE") + "\DESKTOP\" + lcFile,0)
>lnSuccess=FCLOSE(lnFileHandle)
>
>
>>Hi,
>>
>>I have a pretty un-computer literate client (a lawyer), and the system i wrote for him generates a Word Document that he wants to access easily. He is suggesting that I save the file on his desktop (he will be doing this rarely).
>>
>>Is there a way i can save a file to the desktop in VFP?
>>
>>Thanks, Jill
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]