Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.
i have this program that can run on the command line (goes faster that way) and i have a .bat that makes it easier to do this what i want is to save where it it up to when it exits using a .txt file so that it has an input file andmakes an output file that becomes the new input file and it goes on and on and on(until i stop it)i would like to name the files 1(the 1st input),2,3,4,5,6,... p.s no files are deleted in the process and i would like to have it run and when i want to stop i can and when i start it again it can go from where it left off (that is why i want to save a variable to a .txt filep.s.sthe program is evolve 4.0 and can be found here http://www.stauffercom.com/evolve4/some more info about the command line is here http://www.stauffercom.com/evolve4/evolve_batch.html
He's playing a game called IRL. Great graphics, *censored* gameplay.
@echo off:setup0echo do you want to start from where you left off[y\n]set/p "cho=>"if %cho%==y goto setup1if %cho%==n goto setup2:setup1clsecho timeset/p "time=>"echo inputset /p in=<filename.txtecho %out%echo outputset/p "out=>"echo are the time,input and output correct[y/n]set/p "cho=>"if %cho%==y goto evolve_bif %cho%==n goto setup%out%>filename.txt:setup2clsecho timeset/p "time=>"echo inputset/p "in=>"echo outputset/p "out=>"echo are the time,input and output correct[y/n]set/p "cho=>"if %cho%==y goto evolve_bif %cho%==n goto setup:evolve_bcd C:\Program Files\Evolve evolve_batchevolve_batch s %time% %in%.evolve %out%.evolve
@echo off & setlocal:setup0if not exist save.txt goto setup2echo do you want to start from where you left off[y\n]set/p "cho=>"if %cho%==y goto setup1if %cho%==n goto setup2goto:eof:setup1for /f "tokens=*" %%a in (save.txt) do %%aset outgoto:eof:setup2set/p out=enter string:echo variable out=%out% will be saved as save.txt>save.txt echo set out=%out%
@echo off & setlocal:setup0if not exist save.txt goto setup3echo do you want to start from where you left off[y\n]set/p "cho=>"if %cho%==y goto setup1if %cho%==n goto setup2goto:eof:setup1clsfor /f "tokens=*" %out% in (save.txt) do %out%echo timeset/p "time=>"echo inputecho %out%echo %out%echo outputset/p "out=>"echo are the time,input and output correct[y/n]set/p "cho=>"if %cho%==y goto evolve_bif %cho%==n goto setup:setup2clsecho timeset/p "time=>"echo inputset/p "in=>"echo outputset/p "out=>"echo are the time,input and output correct[y/n]set/p "cho=>"if %cho%==y goto evolve_bif %cho%==n goto setup:setup3set/p out=enter string:echo variable out=%out% will be saved as save.txt>save.txt echo set out=%out%:evolve_bcd C:\Program Files\Evolve evolve_batchevolve_batch s %time% %out%.evolve %out%.evolve
:evolve_bcd C:\Program Files\Evolve evolve_batchevolve_batch s %time% %out%.evolve %out%.evolve
what are the value of var time,out,evolve,out on the following 2 condition:1.do you want to start from where you left off[y\n] Y2.do you want to start from where you left off[y\n] N
@echo off & setlocal:setupset/p c=do you want to start from where you left off [y\n] : echo.%c%|findstr/ix "y n yes no">nul || goto:setupif /i %c:~,1%.==y. for /f "tokens=*" %%a in (save.txt) do set %%aif /i %c:~,1%.==n. ( set/p var_time=time : set/p var_in=input : set/p var_out=output : set var_>save.txt):validateYesNoecho evolve_batch s %var_time% %var_in%.evolve %var_out%.evolveset/p c=are the time,input and output correct [y/n] :echo.%c%|findstr/ix "y n yes no">nul || goto:validateYesNoif /i %c:~,1%.==n. goto:setupcd C:\Program Files\Evolve evolve_batchevolve_batch s %var_time% %var_in%.evolve %var_out%.evolve
@echo off & setlocal & set c=nif not exist save.txt goto skip:setupset 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:skipif /i %c:~,1%.==y. for /f "tokens=*" %%a in (save.txt) do set %%aif /i %c:~,1%.==n. ( set/p var_time=time : set/p var_in=input : )set/p var_out=output : :validateYesNoecho evolve_batch s %var_time% %var_in%.evolve %var_out%.evolveset c=&set/p c=are the time,input and output correct [y/n] :echo.%c%|findstr/ix "y n yes no">nul || goto:validateYesNoif /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 evolve_batchevolve_batch s %var_time% %var_in%.evolve %var_out%.evolve