>I'd like to determine if the VFP executeable MyApp.exe was started as a scheduled task or from a shortcut, command prompt, Explorer click or whatever.
When I wrote an app that did this, I just passed it a parameter. No parameter? You get UI. Parameter? No UI, and just run automatic stuff you want to run.
Mike Stewart