>>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