aspose 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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
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
 
Similar Threads
Java .... practically for what?
run Dos commands in java app
invoking c exe from java
asynchronous java
Ring a phone number