Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
APP/EXE containing currently running program
Message
From
05/03/2012 12:10:50
 
 
To
05/03/2012 10:11:41
Joel Leach
Memorial Business Systems, Inc.
Tennessee, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01537275
Message ID:
01537297
Views:
45
Hi Joel.

>Is there a command (SYS() or otherwise) that returns the name of the APP or EXE that contains the currently running program? I know about SYS(16,1), but it could be an APP/EXE started by another APP/EXE, so I can't assume it is the first. I can also walk through ASTACKINFO(), but I'm wondering if there is a simple function that will provide this info. Seems like there would be.

Unfortunately, there isn't. _VFP.ServerName is useful but only for the starting EXE.

Doug
Previous
Reply
Map
View

Click here to load this message in the networking platform