如何在远程计算机上执行批处理文件? [英] How to execute a batch file on a remote computer?

查看:262
本文介绍了如何在远程计算机上执行批处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望能够构建,其中生成输出和批处理文件都生活在构建机上运行后,在远程计算机上的批处理文件。

I would like to be able to run a batch file on a remote computer after a build, where the build output and batch file are living on the build machine.

在换句话说,我希望通过UNC路径是在远程计算机上运行的是位于生成服务器上的批处理文件,可用。

In other words, i want the batch file that is running on the remote computer to be located on the build server, available through a UNC path.

我已经看了WMI(System.Management)命名空间,但还没有找到,告诉它看的UNC路径的批处理文件的正确方法。

I've looked at WMI (System.Management) namespace, but haven't found the correct way of telling it to look at a UNC path for the batch file.

是解决方案比其他WMI还AP preciated。

Solutions other than WMI are also appreciated.

凯文

推荐答案

尝试使用sysinternal工具的 PSEXEC

Try to use the sysinternal tools PSExec

这将允许您可以远程执行一个文件

It will allow you to remotely execute a file

这篇关于如何在远程计算机上执行批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆