如何使用PowerShell来运行批处理文件 [英] How to run batch file using powershell

查看:2503
本文介绍了如何使用PowerShell来运行批处理文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图运行中使用PowerShell一批文件。它所需的属性文件,启动APP因为没有它失败的原因。

I am trying to run one batch file using powershell. It required property file to start the APP as without it is failing.

下面是我已经试过,但力获得成功的命令。

Below are the commands which i have tried but dint get success.

cmd.exe /c ' C:\designer\5.7\bin\designer.bat -p C:\designer\5.7\bin\designer.prop

& "C:\designer\5.7\bin\designer.exe" "C:\designer\5.7\bin\designer.prop"

& "C:\designer\5.7\bin\designer.exe" C:\designer\5.7\bin\designer.prop

可能有人建议更多呢?

Could someone suggest more on it?

推荐答案

您应该能够只使用

C:\designer\5.7\bin\designer.bat -p C:\designer\5.7\bin\designer.prop

您后面的两个例子应该工作,因为它们。

Your latter two examples should work as they are.

这篇关于如何使用PowerShell来运行批处理文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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