Run Batch File

· We will use the task Run Batch File to execute the command(s) from Batch File

· User has to configure batch file path in the Task Parameters tab .

img

· If the Task Fail to run, User can check the details in the Error Log(RunBatchFile_Priority_PlantId.log).

In the case of copying file, check the Error Status and Exit using "exit /b 1" command. Refer the Sample :

copy C:\test.txt C:\dest\
    IF ERRORLEVEL 1 (
        echo Copy failed!
        exit /b 1
    ) 
echo Copy succeeded