Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
GETDIR() and LFN's
Message
From
04/07/1999 07:49:16
 
 
To
04/07/1999 03:38:35
Raul Davila
Davila Programming Services
Toa Alta, Puerto Rico
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00237276
Message ID:
00237288
Views:
10
>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().
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform