aspose file tools*
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
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic
Author

problem in Shutdown a computer

koushik maiti
Greenhorn

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..
etc..

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..
bye,
koushik maitit
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14273
    
  21

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: http://www.codeguru.com/forum/


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
 
jQuery in Action, 2nd edition
 
subject: problem in Shutdown a computer