File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes SHUT DOWN SYSTEM USING JAVA PROGRAM Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "SHUT DOWN SYSTEM USING JAVA PROGRAM" Watch "SHUT DOWN SYSTEM USING JAVA PROGRAM" New topic
Author

SHUT DOWN SYSTEM USING JAVA PROGRAM

Shaji Ravindran
Ranch Hand

Joined: Jan 12, 2002
Posts: 39
Hi,
Is it possible to shutdown the computer using java program,if yes how.Iam using windows NT
Thanks
netharam ram
Ranch Hand

Joined: Aug 09, 2001
Posts: 202
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

Joined: Sep 02, 2001
Posts: 756
where i can get this method?
Bye.
Viki.


Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining http://groups.yahoo.com/group/IBM340Exam/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: SHUT DOWN SYSTEM USING JAVA PROGRAM