See
Enhanced GETDIR() using Shell Object FAQ #7780
>Is there any function or any way to replace Getdir() function with something more functional.
>
>When my clients installs my software on clients pcs they need to especify where the data is on the network. It's would be easy if CURDIR() could work like GETFILE().
>
>I need to return a forder like:
>\server\mysoftware\mydata
--sb--