Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Working with Scheduled Tasks in Java for Windows XP

 
Avinash Haridasu
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 20510
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic