How I can take the exe name running? For example, if I have a project that
will be used with the executable name 'myproj.exe' and this is renamed to
'ourproj.exe', how I can take in executation time the name of the EXE file?
Lee Mitchell - 07 May 2004 18:32 GMT
Hi Max Andr? B?ndchen:
I am not sure if I understand your question, take a look at these articles
and see if they help:
188404 HOWTO: Use API Calls to Detect Other Running Applications
http://support.microsoft.com/?id=188404
121242 HOWTO: Produce a List of Other Applications Running in Windows
http://support.microsoft.com/?id=121242
You might also be able to use AGetFileVersion()
I hope this helps.
This posting is provided "AS IS" with no warranties, and confers no rights.
Sincerely,
Microsoft FoxPro Technical Support
Lee Mitchell
*-- VFP8 HAS ARRIVED!! --*
Read about all the new features of VFP8 here:
http://www.universalthread.com/VisualFoxPro/News/VFP8Release.asp
Purchase VFP8 here:
http://shop.microsoft.com/Referral/Productinfo.asp?siteID=11518
Keep an eye on the product lifecycle for Visual FoxPro here:
http://support.microsoft.com/default.aspx?id=fh;[ln];lifeprodv
- VFP5 Mainstream Support retired June 30th, 2003
- VFP6 Mainstream Support retires Sept. 30th, 2003
>How I can take the exe name running? For example, if I have a project that
>will be used with the executable name 'myproj.exe' and this is renamed to
>'ourproj.exe', how I can take in executation time the name of the EXE file?
Daniel Gro?e-Lanwer - 23 Jun 2004 13:07 GMT
One could try astackinfo(). The second column of its's array return the
module name.
You could go down the stack to the first stackentry. This is the name of
your exe/the exe that you are running.
> How I can take the exe name running? For example, if I have a project that
> will be used with the executable name 'myproj.exe' and this is renamed to
> 'ourproj.exe', how I can take in executation time the name of the EXE file?
Devapriya De Silva - 02 Aug 2004 07:04 GMT
JUSTFNAME(SYS(16,0))
Regards,
Devapriya De Silva
> One could try astackinfo(). The second column of its's array return the
> module name.
[quoted text clipped - 6 lines]
> > 'ourproj.exe', how I can take in executation time the name of the EXE
> file?