How to shutdown Pc from my commuter in Same Network

  • Thread starter Thread starter Sumanfbc
  • Start date Start date
S

Sumanfbc

Guest
Hello I am trying to write a code for VB.net to shutdown Pc in same network. I am trying the following code but its not working . Its showing the Error code = 5

Dim proc = Process.Start("shutdown", "/s /m \\NSU")
proc.WaitForExit()
If proc.ExitCode <> 0 Then
MsgBox("Failed - Code = " & proc.ExitCode)
Else
MsgBox("Success")
End If

Thanks with Regards

Shafiqul Alam





Shafiqul Alam

Continue reading...
 
Back
Top