Saved Bookmarks
| 1. |
Solve : how can i stop batch/cmd from erasing old lines?? |
|
Answer» Quote from: Reno on May 20, 2009, 09:28:36 AM answer: post #2 Worth repeating i chaged the Code: [Select]evolve_b.bat>a.txt to Code: [Select]evolve_batch.exe>a.txt and it now writes this to the .txt Code: [Select] Usage: evolve_batch s <time-spec> <infile.evolve> <outfile.evolve> evolve_batch p <infile.evolve> evolve_batch k <kforth_file> evolve_batch = <file1.evolve> <file2.evolve> evolve_batch rc <file.evolve> [x y] evolve_batch 1S <infile.evolve> <outfile.evolve> ERROR: No arguments. which is some of the text i want to copy i would like to copy this and what is PUT below it Code: [Select]@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.exethank you for helping me Reno and i don't care that it does not display the info when it's run i usually leave it going unattended for an hour or so unless i want to save the info (by copying and pasting it in to excel for graphing which i don't have to do any more) so THANK you again for helping me no problem. glad the script works well |
|