Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Name of .exe
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00108625
Message ID:
00109846
Views:
26
>>Is there a way to find out the name of the executable you are running, through vfp?
>>
>>Thanks,
>>Matt
>
>One point with SYS(16) - if you have a runner program, put it at the beginning of there otherwise it may return a library location or something similar. I have just been playing with this and decided to use sys(16) at the start of my runner and place the result in a property on my application object (I use this to identify other data locations).

SYS(16,0) or SYS(16,1) always returns the initial executable.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform