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