Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine EXE Home directory.
Message
De
30/08/2001 12:58:41
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00550132
Message ID:
00550958
Vues:
15
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,
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform