I think you need sys(16,1) to pick up the EXE name as opposed to the currently 
executing procedure.

rk

-----Original Message-----
From: [email protected] [mailto:[email protected]] On 
Behalf Of Grigore Dolghin
Sent: Thursday, April 01, 2010 8:45 AM
To: [email protected]
Subject: Re: Running EXE Name

Sys(16) issued in the prg should return the fullpath of the running exe. Is
this what you need?


On Tue, Mar 30, 2010 at 11:50 PM, Philip Borkholder <[email protected]>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


_______________________________________________
Post Messages to: [email protected]
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/df1eef11e586a64fb54a97f22a8bd044067af92...@ackbwddqh1.artfact.local
** 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