Meaningless Drivel is fun!*
The moose likes Java in General and the fly likes Working with Scheduled Tasks in Java for Windows XP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Working with Scheduled Tasks in Java for Windows XP" Watch "Working with Scheduled Tasks in Java for Windows XP" New topic
Author

Working with Scheduled Tasks in Java for Windows XP

Avinash Haridasu
Ranch Hand

Joined: Jul 12, 2011
Posts: 31
Hi All

I have a requirement to get the list of all the Scheduled Tasks (Windows XP), their last executed time, executed status, next run time ..etc

Could you please suggest me any api .. or any comments on how may i proceed with this.

Thank you.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19649
    
  18

Use JNI in combination with the API found at http://msdn.microsoft.com/en-us/library/windows/desktop/aa383608(v=vs.85).aspx. Alternatively, use ProcessBuilder to call schtasks.exe.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Working with Scheduled Tasks in Java for Windows XP
 
Similar Threads
schedule a task
Test first , then Analyse
Web services, need help on 2 things
scheduling java program
How to start Galssfish when Computer start