 |
SoftTree Technologies
Technical Support Forums
|
|
Author |
Message |
SysOp
Site Admin
Joined: 26 Nov 2006 Posts: 7948
|
|
|
|
Change the Batch script to
 |
 |
@ECHO
IF NOT EXIST C:\Users\....user path goes here...\Desktop\test.txt GOTO PRINT_ERROR
ECHO File not found
EXIT 0
:PRINT_ERROR
ECHO ERROR
EXIT 1
|
Then the previously referenced solution will work for you
 |
 |
var runInfo = Process.runAndWait("C:\\path\\to\\file\\mybatch.bat", 0);
if(runInfo.getOutput().indexOf("ERROR") >= 0)
makeJobFail; // this invalid command will make the job to fail |
|
|
Wed Oct 15, 2014 8:59 am |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|