我需要脚本来运行带参数的 exe 文件。这就是我写的,如果有更好的方法吗?
$Command = "\\Networkpath\Restart.exe" $Parms = "/t:21600 /m:360 /r /f" $Prms = $Parms.Split(" ") & "$Command" $Prms
谢谢
windows powershell scripting exe
exe ×1
powershell ×1
scripting ×1
windows ×1