how can i shutdown PC on the network???pls tnx

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2008
Posts: 5
Reputation: jhaymayclow is an unknown quantity at this point 
Solved Threads: 0
jhaymayclow jhaymayclow is offline Offline
Newbie Poster

how can i shutdown PC on the network???pls tnx

 
0
  #1
Jun 27th, 2008
Hi everyone...
i'm just a beginner in vb2008 i try to make a program that will shutdown pc in the network and i try the shell command below....

shell("shutdown -m \\PC04 -s")

I type this code but nothing happen it just open a command promt look alike.
PC04 has not been shutted down .pls help me i wanna try this program.
whats wrong with my syntax? do i need to configure PC04?everything is ok in my system properties i checked the remote control property the "allow this computer to control remotely" is already cheked...pls help me

thank you very much..more power....
Reply With Quote Quick reply to this message  
Join Date: Sep 2008
Posts: 12
Reputation: silambharasan is an unknown quantity at this point 
Solved Threads: 0
silambharasan silambharasan is offline Offline
Newbie Poster

Re: how can i shutdown PC on the network???pls tnx

 
0
  #2
Sep 14th, 2008
Originally Posted by jhaymayclow View Post
Hi everyone...
i'm just a beginner in vb2008 i try to make a program that will shutdown pc in the network and i try the shell command below....

shell("shutdown -m \\PC04 -s")

I type this code but nothing happen it just open a command promt look alike.
PC04 has not been shutted down .pls help me i wanna try this program.
whats wrong with my syntax? do i need to configure PC04?everything is ok in my system properties i checked the remote control property the "allow this computer to control remotely" is already cheked...pls help me

thank you very much..more power....
hay,
this code will works,
Sub Main()
ExitWindowsEx(ExitWindowsFlags.Shutdown, 0&)
End Sub
Private Declare Function ExitWindowsEx Lib "user32" (ByVal uflags As Long, ByVal dwreserved As Long) As Long
Private Enum ExitWindowsFlags
Shutdown = 1

End Enum
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC