Thanks for the suggestion, but this method will require the EXE to be running to return the correct value. My current method only requires an EXE file to be in the development folder so my method will work even if in the IDE.
Paul H. Tarver -----Original Message----- From: ProfoxTech [mailto:[email protected]] On Behalf Of Charlie-gm Sent: Wednesday, May 02, 2018 8:31 AM To: [email protected] Subject: Re: AGETFILEVERSION Fail Maybe take a look at "_VFP.servername". That returns a character string of the .exe (including path) that is being executed. Example: my_exe_file = _vfp.servername I don't think this will work if you are running ".app" files - in that case it may always return the path to the VFP9.exe executable. But if you run that line of code within a compiled VFP .exe, you should always get the path/name of the .exe (assuming that is what you're after here). HTH, -Charlie On 5/1/2018 4:23 PM, Paul H. Tarver wrote: > The code I'm using now is how I determine the name of the compiled > application and once it returns the correct .EXE name, we then look for an ... >> The reason for this code is to identify the application .EXE. Perhaps [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.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.

