Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

SHUT DOWN SYSTEM USING JAVA PROGRAM

 
Shaji Ravindran
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Is it possible to shutdown the computer using java program,if yes how.Iam using windows NT
Thanks
 
netharam ram
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of windows98 u can use
" c:\windows\rundll32.exe C:\windows\system\shell32.dll,SHExitWindowsEx 1"
in runtime.exec(),but I don't know for NT.Try out with this option.
Happy middling with java. :
Netharam. :
 
Vikrama Sanjeeva
Ranch Hand
Posts: 760
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
where i can get this method?
Bye.
Viki.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic