File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes problem in Shutdown a computer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

problem in Shutdown a computer

koushik maiti

Joined: Jul 22, 2005
Posts: 9
hai all,
first i am sorry for posting a vb code here...because i have nothing to do to solve this problem...

When i am executing this program...the computer is not shut down...
the specification of my computer is ...

Microsoft windows2000...Service Pack 4..

the vb code is given below.....

Private function shutdown()
shell "rundll krnl386.exe,exitkernel"
End Function
but this code is not working..plz send me the solutions..i am waiting for ur answers..
koushik maitit
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15045

You already posted this here a few days ago.
Why are you posting it again?

This forum is about Java, not about Visual Basic and Windows programming.

Ask your question on a Visual Basic forum.
For example here:

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: problem in Shutdown a computer
It's not a secret anymore!