Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Location of a VFP exe
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396912
Message ID:
00397207
Views:
12
>Andrew and Ed,
> Thank you, thank you, thank you.
>Both "ExeLocation = justpath(_vfp.servername)"
> and "ExeLocation = justpath(SYS(16,0))"
>produce the correct result.

Realize that in the COM environment, they are not identical; I also recommend doing a FULLPATH() on either result, and that you also hook the location that VFP's files from SYS(2004), as opposed to the executable path grabbed above, get snagged, since many people drop things like FOXTOOLS in the same place as the development engine or runtime files.
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