Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Was MyApp.exe started as a scheduled task?
Message
De
12/10/2001 08:27:15
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
12/10/2001 08:03:36
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00567496
Message ID:
00567503
Vues:
16
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform