Excuse me,noob question.
where to put "--logfile filename"?
this is my bat file.
@echo off
cls
SETLOCAL EnableExtensions
set EXE=SRBMiner-CN.exe
:START
FOR /F %%x IN ('tasklist /NH /FI "IMAGENAME eq %EXE%"') DO IF %%x == %EXE% goto RUNNING
%EXE% -c config.txt --logfile log.txt
TIMEOUT /T 5 /NOBREAK
goto START
:RUNNING
echo "%EXE% is already running"
pause