545740
nodejs怎么执行远程服务器的bat脚本,求大佬
nodejs怎么执行远程服务器的bat脚本,求大佬
这个链接可以完美的回答你的问题:http://t.cn/EJH07Ve
node 开个 http 服务,代理执行命令即可
1、怎么执行远程服务器的 bat 脚本?
windows 服务器其实也有比较全面的安全控制,可以通过 powershell 来执行远程的命令,自然也可以调用执行 bat 脚本了。 参考官方文档:https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/running-remote-commands?view=powershell-6
2、nodejs 如何执行 powershell