Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to get path from where executable file was started
Message
From
14/01/2000 23:50:16
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00318165
Message ID:
00318487
Views:
30
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform