Win a copy of Practical SVG this week in the HTML/CSS/JavaScript 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
Posts: 20822
68
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.
 
Today you are you, that is turer than true. There is no one alive who is youer than you! - Seuss. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!