Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine EXE Home directory.
Message
From
30/08/2001 12:58:41
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00550132
Message ID:
00550958
Views:
14
Hi Elgin,

>I have compiled an EXE of my App and created a Setup disk using the Setup Wizard. I included the VFP Runtime files when running the Wizard. The setup defaults to installing into c:\program files\labnav. I think I see the Vfp6r.dll and other runtime files getting installed to the Windows\System directory. In code, I need to determine the folder from where my EXE is running. I know Sys(2004) returns the folder of the Runtime files, but how do I determine where my program is launched from? What I'm trying to do is delete some temporary tables and TXT files that get created in the lauch directory.

If seen the SYS(16) function fail in some circumstances (building DCOM exe), _VFP.servername OTOH, always give you the fullpath of the executable running.

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform