Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Was MyApp.exe started as a scheduled task?
Message
From
12/10/2001 08:27:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
12/10/2001 08:03:36
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00567496
Message ID:
00567503
Views:
15
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform