如何关闭PC并将消息从PC发送到网络PC? [英] How Can I Shutdown And Send Message To The Network Pcs From My Pc?

查看:160
本文介绍了如何关闭PC并将消息从PC发送到网络PC?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我想从我的PC中关闭,重新启动或注销网络PC.您能告诉我VB6代码是什么吗?我也想借助VB6代码向网络PC发送消息.
要关闭远程PC,我使用了以下代码,但它不起作用.请帮忙.

'代码 - - - - - - - - - - - - - - - - - - - - - - - - -----------

Dear

I would like to Shutdown or Restart or Logoff network PCs from my PC. Would you please let me know what would be the VB6 code? I also want to send message to the network PCs with the help of VB6 code.
To shutdown remote PC, I’ve used below code but it doesn’t work. Please help.

‘Code-----------------------------------------------------------

Command1_Click()
Shell ("shutdown.exe -s -m \\192.168.2.2 -t 00") "This IP belongs to remote PC".
End Sub

'--------------- --------------------------------------------

问候,
佩尔韦兹
电子邮件:[删除电子邮件]

‘-----------------------------------------------------------

Regards,
Pervez
E-mail: [email removed]

推荐答案

执行某些搜索和阅读某些原始MSDN文档如此困难吗?这样说: http://bit.ly/1tzCqGp [ ^ ].

特别是
http://support.microsoft.com/kb/317371 [ http://technet.microsoft.com/en-us/library/cc770416.aspx [ ^ ],
http://www.wikihow.com/Do-a-局域网上的PC的远程关机 [
Was that so difficult to perform some search and read some original MSDN documentation? Say, this way: http://bit.ly/1tzCqGp[^].

In particular,
http://support.microsoft.com/kb/317371[^],
http://technet.microsoft.com/en-us/library/cc770416.aspx[^],
http://www.wikihow.com/Do-a-Remote-Shutdown-for-a-PC-on-a-LAN[^].

—SA


这篇关于如何关闭PC并将消息从PC发送到网络PC?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆