简体   繁体   English

将批处理命令重写为 Jenkins 构建步骤的 Powershell

[英]Rewrite Batch command as Powershell for Jenkins build step

I need to change this batch command to powershell:我需要将此批处理命令更改为 powershell:

WfWI.exe x.msi /c /o xy/x.msi /l xy/wfwi.log /s

I need to implement this command in jenkins powershell build step.我需要在 jenkins powershell 构建步骤中实现这个命令。

Couldn't you use one of theses ?你不能使用其中一篇论文吗?

cmd.exe /c "WfWI.exe x.msi /c /o xy/x.msi /l xy/wfwi.log /s"

& "WfWI.exe x.msi /c /o xy/x.msi /l xy/wfwi.log /s"

WfWI.exe x.msi /c /o xy/x.msi /l xy/wfwi.log /s | cmd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM