943,807 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 2830
  • VB.NET RSS
Jun 27th, 2008
0

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

Expand 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....
Reputation Points: 10
Solved Threads: 0
Newbie Poster
jhaymayclow is offline Offline
5 posts
since Jun 2008
Sep 14th, 2008
0

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

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
Reputation Points: 10
Solved Threads: 0
Newbie Poster
silambharasan is offline Offline
17 posts
since Sep 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: about project-reg.,
Next Thread in VB.NET Forum Timeline: Days, Hours, Minutes and Seconds countdown





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC