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.