In COM mode: Application.serverName
https://msdn.microsoft.com/en-us/library/aa978311(v=vs.71).aspx
Thierry Nivelet http://foxincloud.com/ Give your VFP app a second life in the cloud
Thierry Nivelet http://foxincloud.com/ Give your VFP app a second life in the cloud
Le 14 juil. 2017 à 11:01, Paul Newton Paul.Newton@pegasus.co.uk a écrit :
I will take a look - thanks Alan
-----Original Message----- From: ProfoxTech [mailto:profoxtech-bounces@leafe.com] On Behalf Of Alan Bourke Sent: 14 July 2017 09:59 To: profoxtech@leafe.com Subject: Re: Alternative to PROGRAM() and SYS(16,n)
Seems as good an approach as any.
Take a look at this article though: https://blogs.msdn.microsoft.com/calvin_hsia/2007/09/13/run-your-application...
There is a function at the bottom there which uses the Windows API GetModuleFilename() function in the context of a VFP OLE server.
-- Alan Bourke alanpbourke (at) fastmail (dot) fm
[excessive quoting removed by server]