Is this a service? Is this a scheduled task?

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
May 29, 2008
517
3
Groton, CT
#1
Three feature requests for some subsequent version:

1. A new variable _SERVICE value 1 if this instance of TCC is running as a service, 0 otherwise. (I was considering asking for _SERVICENAME, but with _SERVICE, it can probably be fairly easily obtained by using _PID.)

2. A new variable _SCHTASK value 1 if this instance of TCC is running as a scheduled task, 0 otherwise.

3. (If %_TASK EQ 1 then) a new variable _SCHTASKNAME for the name of the running scheduled task; empty string otherwise. (Perhaps if this is implemented, _SCHTASK would be unnecessary.)
 
May 29, 2008
517
3
Groton, CT
#2
Is this being run during startup?

Three feature requests for some subsequent version:

And one more:

4. A new variable _DURING_STARTUP, or something a little less verbose, value 1 if started due to one of the startup registry key groups or because of being in the Startup program group (which is distinguishable from the value of %_SHORTCUT), 0 otherwise.

(It would be even better if the result could differentiate which group of registry key entries this task was found in.)