>Hi:
>
> I found a weird behavior using getdir().
> I made a small "post setup" executable to be run after the installation.
> Mainly what it does is ask the user to choose the directory where the app was installed (is there a way to tell the setup to pass the installation directory as a parameter to a post setup exe?).
>
It'w actually trivial:
lcInstallDir = FULLPATH(SYS(16,0))
lcInstallDir = LEFT(lcInstallDir, RAT('\',lcInstallDir)-1)
> I call getdir() and when the dialog shows it has 8.3 names in it.
> If the user climbs up in the directory hierarchy, then the LFN's show!
>
>eg:
> If the current directory was c:\program files, the getdir() dialog shows c:\progra~1 and then if you doubleclick on c:\ you get the whole root directory and this time it shows \Program Files.
>
> Strange thing is I tried to reproduce it from inside VFP and it doesn't happen.
>
> Is this a documented bug?
You can use ither Bela Bodec's .FLL, or the code I posted in the FAQ for using the Shell.Application automation object to build an enhanced GETDIR().