@echo off & setlocal & set c=n
title evolve_b
if not exist save.txt goto skip
:setup
set c=&set/p c=do you want to start from where you left off [y\n] :
echo.%c%|findstr/ix "y n yes no">nul || goto:setup
:skip
if /i %c:~,1%.==y. for /f "tokens=*" %%a in (save.txt) do set %%a
if /i %c:~,1%.==n. (
set/p var_time=time :
set/p var_in=input :
)
set/p var_out=output :
:validateYesNo
echo evolve_batch s %var_time% %var_in%.evolve %var_out%.evolve
set c=&set/p c=are the time,input and output correct [y/n] :
echo.%c%|findstr/ix "y n yes no">nul || goto:validateYesNo
if /i %c:~,1%.==n. goto:setup
>save.txt echo var_time=%var_time%
>>save.txt echo var_in=%var_out%
cd C:\Program Files\Evolve
>temp.txt evolve_batch.exe
type temp.txt
type temp.txt>>a.txt
>temp.txt evolve_batch.exe s %var_time% %var_in%.evolve %var_out%.evolve
type temp.txt
type temp.txt>>a.txt
notes: with this method, you will lose the real-time display of evolvebatch.exe