首页 > 解决方案 > Powershell 使用参数启动 .exe

问题描述

我们尝试使用 powershell 启动一个包含文本文件的 .exe 文件,但是 .exe 文件正在启动,但参数仍未通过

$gs = "E:\Main.exe"
$arguments = "Age"
Start-Process $gs $arguments -Wait

我们尝试使用上述 cmdlet。欢迎任何建议。

标签: powershellpowershell-3.0powershell-4.0

解决方案


推荐阅读