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:
00396936
Views:
11
>Robert,
>
>I think you might be looking for:
>
>application.servername (or _vfp.servername)
>

Or SYS(16,0)

>Cheers,
>
>Andrew
>
>

>
>>I am looking for a VFP command that will return the path of the running exe that the Delphi command below returns:
>>
>>Delphi command~"ExeLocation := ExtractFilePath(Application.EXEName);"
>>
>>Note: the reason I need this is that MS's new Visaul Installer creates shortcuts with an empty "start in" location. When I try to set help to myhelpfile it no longer finds my help file which is in a subfolder below my exe's folder. If I launch my exe from it's on folder there are no error messages. When launched from the shortcut, the help file is not found and errors result. I wrote a DLL in Delphi to obtain the true location of my vfp exe, but it seems as though there should be a command in VFP. Sys(5)+Curdir() seems to return the location of the VFP runtime dll.
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
Next
Reply
Map
View

Click here to load this message in the networking platform