2016-03-28 62 views

回答

2

Exit <custom error codes>將返回定製從腳本返回代碼

0

此外,它常常是最好通過一個.bat文件來調用您的Power Shell腳本。例如。

  1. 具有控制-M的工作是一個 「命令」,有這個在命令字段 -

C:\ Program Files文件\ BMC軟件\ CONTROL-M代理\ DEFAULT \腳本\ PS_log_check.bat

  • 然後.bat文件應指向您的Power shell腳本 -
  • 的powershell -command「&「C:\ Program Files文件\ BMC小號oftware \ Control-M Agent \ Default \ Scripts \ PS_log_check.ps1'「