who can program to read running state of a scheduled task

G

Guest

I am trying to find a way to detect the status of a scheduled task defined
under Windows Environment. Is there some API available for Access (VBA) or
other programming language (C, Java, etc.)?

I could think of other means to workaround and solve my problem but I prefer
employing an API. For example, I want to know if the task is currently
running, and if it is, when does the task starts - by means of program. Do
not reply if you could only mention to me that these data could be read off
the screen after opening up the scheduled task from the Control Panel.
 
J

John Nurick

Klatuu's suggestion should work if you want to find out whether the script
or program launched by a task is currently active. If you want to get at the
list of scheduled tasks, it appears to be possible up to a point using WMI -
but there are limitations and complications. See e.g.
http://www.microsoft.com/technet/scriptcenter/resources/qanda/sept04/hey0922.mspx
http://www.microsoft.com/technet/scriptcenter/guide/sas_man_lpja.mspx?mfr=true

After reading those, you'll know about as much as I do on this topic.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top