问题描述
我正在尝试使用 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 (将#修改为@)