>>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.