VB和sql中的远程关机 [英] Remote Shutdown in VB and sql
本文介绍了VB和sql中的远程关机的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有2个应用程序1用于管理员,2个用于用户。我想远程关闭和注销用户系统。我的数据库是在互联网上。所以,当任何用户上线时,我可以在我的管理应用程序中看到他,(显示用户在线),现在我想关闭任何在线用户(远程)
i have 2 application 1 is for admin and 2 is for user. i want to shutdown & log off user system remotely. my database is in internet. so that when any user come online i can see him in my admin app , (showing user is online), now i want to shutdown any user who is online (remotely)
推荐答案
您好
如果您的IP对任何客户都有效,您可以使用此命令:
shutdown -s -f -m \\ 远程机器的IP-t xx
此命令可以在xx秒之后关闭客户端计算机,但如果您没有IP有效,则应在客户端应用程序上编写方法并使用shell运行此命令从中。之后你可以为你的客户发送关机信息。
最好的问候
Hi
If you have a IP Valid for any clients you can use this command:
shutdown -s -f -m \\"IP of remote machine" -t xx
This command can shutdown you client computer after xx second, but if you have not IP Valid you should write a method on client side application and run this command with shell from it. after that you can send shutdown message for your client.
Best Regards
这篇关于VB和sql中的远程关机的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文