Shutdown a remote computer connected in LAN in any preferable language

后端 未结 7 2115
逝去的感伤
逝去的感伤 2021-01-21 19:29

I want to shut down a remote Windows computer (ex. a Windows computer connected in LAN.) I have tried a lot but I could not find the solution. Does anyone have an idea on how to

7条回答
  •  独厮守ぢ
    2021-01-21 20:31

    Invoke shutdown -s -m \\computername command through a primitive used to start processes (like Process.Start() or CreateProcess()).

提交回复
热议问题