如何在Windows应用程序中运行服务器上的bat文件 [英] How to run bat file on server in windows application

查看:67
本文介绍了如何在Windows应用程序中运行服务器上的bat文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Windows应用程序中具有凭据的服务器上运行bat文件



我尝试了什么:



我尝试过使用WMI类,但它没有用。

我觉得我做错了。

I want to run bat file on server having credentials in windows application

What I have tried:

I have tried using WMI class but it did not work .
I think i am doing somthing wrong .

推荐答案

用于执行.net代码的bat文件,你可以参考这个URL 在C#中执行批处理文件 - 堆栈溢出 [ ^ ]
for executing bat file with .net code, you can refer to this URL Executing Batch File in C# - Stack Overflow[^]


这篇关于如何在Windows应用程序中运行服务器上的bat文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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