GETFILE() uses the current directory. So - change the current directory then reset it when you're done.
You have to save the original directory anyway because all of VFP's (Windows' really) folder functions change the path when you pick a file or folder from a new location.
lcOldPath = SYS(5) + CurDir()
CD (lcStartPath)
lcFile = GETFILE(...)
CD (lcOldPath)
+++ Rick ---
>Hi,
>Is there a way to make getfile() start looking in a by me instantiated directory instead of the default directory?
>Regards,
>Koen