【发布时间】:2021-05-05 05:45:47
【问题描述】:
我正在尝试通过 pywinrm 运行一个 exe。架构如下:
code --> host Machine (1)--> another machine where exe is located(2)
我可以通过代码连接到主机 1 并在那里执行 echo 语句。但是当我尝试通过
执行exe时session.run_cmd('start \\machine2IP\path\to\exe\filename.exe')
它不工作。当我手动打开机器 1 的 cmd 并运行时,相同的命令正在工作。
我尝试添加 -Wait 参数,同时使用 & 和 run_ps 运行。但仍然没有运气。
【问题讨论】:
标签: python python-3.x exe winrm