>>>>I have an app with mymain.prg as the "main" program.
>>>>
>>>>In the command window I can type in DO MYMAIN.PRG
>>>>
>>>>Is there anyway I can tell that I ran the app with the DO command as opposed to running the exe?
>>>
>>>Sys(16,0) ?
>>
>>That did the trick - thanks!
>
>See also
>
>_VFP.StartMode
That's to see if we're running from IDE or from the OS shell. It will report IDE even if the code was run via
do myapp.exe
I actually don't know how does this count in Victor's question - as exe or as a do. It is both.