| | |
how can i shutdown PC on the network???pls tnx
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Jun 2008
Posts: 5
Reputation:
Solved Threads: 0
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....
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....
•
•
Join Date: Sep 2008
Posts: 12
Reputation:
Solved Threads: 0
•
•
•
•
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....
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
![]() |
Other Threads in the VB.NET Forum
- Previous Thread: about project-reg.,
- Next Thread: Days, Hours, Minutes and Seconds countdown
| Thread Tools | Search this Thread |
"crystal .net .net2005 30minutes 2005 2008 access account arithmetic array basic binary bing button buttons center check code combobox component connectionstring crystalreport data database databasesearch datagrid datagridview design dissertation dissertations dissertationthesis dropdownlist excel file-dialog folder ftp generatetags google gridview hardcopy image images insert intel internet listview login math mobile monitor ms navigate net networking opacity output passingparameters peertopeervideostreaming picturebox picturebox1 port print problem problemwithinstallation project reports" save savedialog searchbox searchvb.net select serial soap string table tcp text textbox timer toolbox trim update updown user usercontrol vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb.nettoolboxvisualbasic2008sidebar vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web wpf





