I Wrote a batch file to read through the text in the file produced and if it finds text named:
"LICENSE ERROR"
Also, I need to re-run the batch file until the text string is no longer there. The license error happens whenever there is no license available to run the job. But I want it to keep checking until the license is available and it will then run the job.
Below is my code and it is not working because the errorlevel
is always zero
, and it seems not to be reading the text file produced.
:case1
call pclrun -v 2017.2 fortrans “H:\Fortran_Folder\test_data\NETWORK"
findstr /m "LICENSE ERROR" NETWORK.TXT
if %ERRORLEVEL%==0 goto :case1