如何在远程计算机上执行批处理文件?机上、批处理文件、如何在

由网友(只为爱你、)分享简介:我希望能够构建,其中生成输出和批处理文件都生活在构建机上运行后,在远程计算机上的批处理文件。I would like to be able to run a batch file on a remote computer after a build, where the build output and batch...

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

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

阅读全文

相关推荐

最新文章