2016-03-28 30 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'“