>Well the title pretty much says it:
>
>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.
>
>I guess the questions here are can do? and how to?
>
>TIA to those of you who'll help me out here.
I have no idea whether this can be done with the API, but I think that when running a program as a scheduled task, you can pass a parameter to indicate this fact. Your program can then test this parameter.
Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)