You can use _VFP.ServerName to get a full path of the running .EXE, or
JUSTFNAME(_VFP.ServerName) for the .EXE name only.

Fred


On Tue, Mar 30, 2010 at 1:50 PM, Philip Borkholder <plbor...@netzero.net>wrote:

> Hey all,
> Anyone know the VFP code or Windows API to be able to find out what
> runtime EXE is running the code?
> Reason being,
> I am working with an application that calls a PRG from two different VFP
> Runtime EXE's.
> I would like different behavior depending on which EXE is calling it.
> (Sending new parameters from the EXEs is not an option right now)
>
> Thanks,
> Philip
>
[excessive quoting removed by server]

_______________________________________________
Post Messages to: ProFox@leafe.com
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/m2t3392e7101004010900yf4072440x16537c8b8d43a...@mail.gmail.com
** 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.

Reply via email to