Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find the path to the EXE?
Message
 
À
07/03/1997 09:26:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00023277
Message ID:
00023348
Vues:
34
>>>>Dear visual FoxPro users
>>>>
>>>>I have created an EXE and the path to my directory where I have all my files isn't dynamic, so I have a problem if the user want to install my app in a different directory. How can I find the path to the EXE? I tried HOME(), but then I got the path to my system directory.
>>>
>>>Just a hint, but it makes life a lot easier if you force (nicely) users to all have exactly the same location...
>>
>>we make all paths relative to the exe directory. the user can install anywhere he wants, and in win95 can call from the 'menu' and everything works ok. advanced users can write their own shortcut to it...
>
>That's my problem, how do I know the exe directory. When the user install my app, s/he can choose installation(exe) directory, but how do I set:
>SET DEFAULT TO ????
>SET PATH TO ????

i don't use set default (win95 shortcut handles this)
set path to data;reports;... in config.fpw file in startup/default dir will locate all files from wherever exe/config file are placed...
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform