C#实现远程关闭计算机或重启计算机的方法

时间:2020-12-31 12:58:56
【文件属性】:
文件名称:C#实现远程关闭计算机或重启计算机的方法
文件大小:39KB
文件格式:PDF
更新时间:2020-12-31 12:58:56
c# 关闭 方法 本文实例讲述了C#实现远程关闭计算机或重启计算机的方法。分享给大家供大家参考。具体如下: /// /// 远程关闭计算机或重启计算机 /// /// 命令 /// ip地址 static void Invoke(string str, string ip) { //定义连接远程计算机的一些选项 ConnectionOptions options = new ConnectionOptions(); options.Username = adm

网友评论