PC Review


Reply
Thread Tools Rate Thread

who can program to read running state of a scheduled task

 
 
=?Utf-8?B?eWtmZmM=?=
Guest
Posts: n/a
 
      4th Apr 2006
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.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2xhdHV1?=
Guest
Posts: n/a
 
      4th Apr 2006
I don't know if this will be of any use to you, but you may want to have a
look at this site:
http://www.mvps.org/access/api/api0007.htm

"ykffc" wrote:

> 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.
>

 
Reply With Quote
 
John Nurick
Guest
Posts: n/a
 
      4th Apr 2006
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/scr...4/hey0922.mspx
http://www.microsoft.com/technet/scr....mspx?mfr=true

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

"ykffc" <(E-Mail Removed)> wrote in message
news:A458EFF6-09B1-4FDA-8B58-(E-Mail Removed)...
>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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What happens if a scheduled task is scheduled to start, but theprevious task execution is still running? joe.carr@gmail.com Windows XP General 1 17th Dec 2007 07:32 PM
How to Read Scheduled Task Last Result from Registry for a task Sakthi Windows XP General 1 20th Jul 2007 06:45 AM
Running scheduled task =?Utf-8?B?bWFyeQ==?= Windows XP Performance 2 1st Feb 2006 06:21 PM
Running A Scheduled Task John Windows XP General 2 5th Aug 2004 05:20 PM
Scheduled task can't running. =?Utf-8?B?VGh1b25nIE5ndXllbg==?= Microsoft Windows 2000 Advanced Server 2 24th Nov 2003 06:21 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:36 AM.