Hello!
I came one more time to ask for a help, because I'm getting the error above from the target-runner.bat, where presented result is NULL, but my code is correct (or, at least, I believe it is). Follow the code and the result presented:
::@echo off
SET EXE=ga_sjp.exe
SET CANDIDATE=%1
SET INSTANCE_ID=%2
SET SEED=%3
SET INSTANCE=%4
SHIFT
SET CANDIDATE_PARAMETERS=%*
SET STDOUT=c%CANDIDATE%-%INSTANCE_ID%.stdout
SET STDERR=c%CANDIDATE%-%INSTANCE_ID%.stderr
%EXE% %INSTANCE% %CANDIDATE_PARAMETERS% 1>%STDOUT% 2>%STDERR%
SETLOCAL EnableDelayedExpansion
SET "cmd=findstr /R /N "^^" %stdout% | find /C ":""
FOR /f %%a in ('!cmd!') do set numberlines=%%a
SET /a lastline=%numberlines%-1
FOR /f "tokens=*" %%F in ('more +%lastline% %stdout%') do set cost=%%F
ECHO %cost%
Can someone help me? I would be very grateful.
Luciano Alves Corrêa
Mestrando em Engenharia de Produção
DEPRO/EM/UFOP
Best regards,