Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to get path from where executable file was started
Message
De
14/01/2000 23:50:16
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00318165
Message ID:
00318487
Vues:
29
>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.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform