Home / Microsoft / Microsoft DOS / how can i stop batch/cmd from erasing old lines?
0 Members and 3 Guests are viewing this topic. « previous next »
Pages: 1 [2]  All - (Bottom) Print
Author Topic: how can i stop batch/cmd from erasing old lines?  (Read 2639 times)
Dias de verano
Guest
« Reply #15 on: May 20, 2009, 10:15:13 AM »

answer: post #2

Worth repeating
IP logged
Ädamas
Topic Starter
Beginner



Thanked: 1
Posts: 64


« Reply #16 on: May 21, 2009, 02:00:18 AM »

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
IP logged

you're just jealous because the voices talk to me, and not you.
Reno
Hopeful



Thanked: 32
Posts: 323




« Reply #17 on: May 21, 2009, 06:46:37 AM »

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.exe
IP logged
Ädamas
Topic Starter
Beginner



Thanked: 1
Posts: 64


« Reply #18 on: May 22, 2009, 03:14:39 AM »

thank 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
IP logged

you're just jealous because the voices talk to me, and not you.
Reno
Hopeful



Thanked: 32
Posts: 323




« Reply #19 on: May 22, 2009, 03:40:29 AM »

no problem.  ;D

glad the script works well
IP logged
Pages: 1 [2]  All - (Top) Print 
Home / Microsoft / Microsoft DOS / how can i stop batch/cmd from erasing old lines? « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.111 seconds with 19 queries.