小编Men*_*eni的帖子

Powershell脚本运行带有参数的exe文件

我需要脚本来运行带参数的 exe 文件。这就是我写的,如果有更好的方法吗?

$Command = "\\Networkpath\Restart.exe"
$Parms = "/t:21600 /m:360 /r /f"
$Prms = $Parms.Split(" ")
& "$Command" $Prms
Run Code Online (Sandbox Code Playgroud)

谢谢

windows powershell scripting exe

3
推荐指数
1
解决办法
8232
查看次数

标签 统计

exe ×1

powershell ×1

scripting ×1

windows ×1