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.