我有一些我想通过powershell脚本(.ps1)运行的process.exe,有没有办法做到这一点。可执行文件也接受输入参数。
答案 0 :(得分:2)
您想要Start-Process。使用“Get-Help Start-Process -Full”找出您确切需要的内容。
可能是这样的:
Start-Process notepad.exe -ArgumentList“arguments”
答案 1 :(得分:1)
以下是一篇TechNet文章,它将为您提供在PowerShell中运行可执行文件的不同方法,如果您阅读,将会非常有用。
https://social.technet.microsoft.com/wiki/contents/articles/7703.powershell-running-executables.aspx
此致
Kvprasoon