Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get path from where executable file was started
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00318165
Message ID:
00318549
Vues:
20
>>For example I have sales.exe in directory x:\programs\sales\
>>And I have created shortcut in user computer with
>>"Target": x:\programs\sales\
>>and
>>"Start In": C:\Sales\
>>
>>When user runs that executable file CURDIR() will show "C:\Sales\", but how to get path of executable file (i.e. "x:\programs\sales\")?
>>
>
>SYS(16,0) fired from the main module shoudl work, unless dealing with a COM object.

Hi Ed,

I think it was Rick Strahl who wrote a function that appeared in FoxPro Advisor that properly returned the startup path of whatever VFP module was started, including COM DLLs. I'll try to dig that up on Monday if anyone's interested.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform