微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

无法使用 HTA 发送 msg

如何解决无法使用 HTA 发送 msg

我正在尝试使用 Windows msg 向我网络上的用户发送消息。如果我从 VBS 运行它,它工作正常,但在 HTA 中,我收到错误“系统找不到指定的文件”。

CreateObject("WScript.Shell").Run "msg /server:myserver username This is the message"

我也试过

CreateObject("WScript.Shell").Run "cmd.exe /c msg /server:myserver username This is the message"
CreateObject("WScript.Shell").Run "C:\Windows\System32\msg.exe /server:myserver username This is the message"

我也试过在没有 /server 的情况下运行它

我还应该提到我在 cmd 提示添加一个暂停来查看错误,我得到以下信息:

'msg' is not recognized as an internal or external command

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。