Hi All
Okay - I'm trying to call an external application using Powershell rather than Executing an external batch file. I am not very conversant with Powershell but I seem to get it working well enough to call the application and run it, however, if there is an error returned from the external application, I can't get the Powershell script to return the error back to VC.
Script sets some environment variables and then calls the executeable:
=====================
$env:ISIS_OMS_DOMAIN="-"
$env:ISIS_OMS_PORT="9091"
$env:ISIS_KEY_MODE="onlyoms"
$env:ISIS_COMMON="C:\isiscommv7"
$env:PATH=$env:PATH + ";" + $env:ISIS_COMMON +"\w3\lib"
$exe = "c:\isis_V72\pdew3700\pdew3.exe"
$rpj = "R:\ISIS_RES\docdef\VIPTemplates.prj"
iex "$exe $prj"
=====================
The PDEW3 exe is erroring but the VC job flags it as succesful when I need it to error. Anybody any suggestions?
Cheers
Andy
Edited by moderator
2011-09-02T15:53:50Z
|
Reason: Not specified