• Post Reply Bookmark Topic Watch Topic
  • New Topic

Ending a task in Windows

 
Eibhlin Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone know if it is at all possible to end a task in the windows OS from a Java program?? If so, what should I use to do it???

Thanks in advance!!
 
Henry Wong
author
Sheriff
Posts: 22516
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, you could exec() the "taskkill" command....

Henry
 
Eibhlin Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for that! But what I didn't think about was actually how to find out what tasks are running on the PC... any suggestions for that?
 
Henry Wong
author
Sheriff
Posts: 22516
109
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Eibhlin Reid:
Thanks for that! But what I didn't think about was actually how to find out what tasks are running on the PC... any suggestions for that?


Try the "tasklist" command.

Henry
 
Eibhlin Reid
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much for your help. That worked great!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!