Pregunta

(I'm working under Windows XP)

A simplification of the approach I'm taking (which isn't working) is as follows:

C:\>schtasks /create /tn "MyTask" /tr "mspaint" /sc daily /st 11:43:00 /ru "System"

I know the task is being scheduled because you can view it in task scheduler.

I know it runs and does not stop because you can view that in task scheduler.

However: The Paint program never becomes visible. (Is it running as another user maybe?)

How do I schedule a task with a GUI so that it becomes visible when the task runs?

¿Fue útil?

Solución

You need to specify the user in whose context the task should be run and check the "Run only when logged in" checkbox. AFAIK this can only be done in the GUI, not via schtasks.

Otros consejos

You can check all the Tasks with simple "schtasks" command. For idea, i think the best way to write a hybrid software, what can handle the Task Interface 2.0 and the schtasks command via process/commandline.

You also can watch the schtasks command line response in the background.

For full schtasks list are here

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top