When a VFP executable is started by an icon with a Start In: set different
then the executable, the SYS(5)+CURDIR() will give you the Start In: and
JUSTPATH(_VFP.ServerName) will give you the EXE path.

If you are in need to read and check the Start In: of shortcuts, it can be
done with a shell object.

oWShell = CreateObject("WScript.Shell")
oShtCut = oWShell.CreateShortcut(cLinkPath)
?oShtCut.TargetPath && This is the EXE
?oShtCut.Description && The ToolTip
?oShtCut.WorkingDirectory && The Start In


HTH,

Tracy


-----Original Message-----
From: Eurico Chagas Filho
Sent: Wednesday, January 09, 2008 8:35 AM

Hi

I have been using a loader program, and now I need to get the start in path
from the shortcut. How can I do that ?

TIA, E.




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to