Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: how can i stop batch/cmd from erasing old lines?  (Read 10284 times)

0 Members and 1 Guest are viewing this topic.

Dias de verano

  • Guest
Re: how can i stop batch/cmd from erasing old lines?
« Reply #15 on: May 20, 2009, 10:15:13 AM »
answer: post #2

Worth repeating

Ädamas

    Topic Starter


    Beginner

    Thanked: 1
    Re: how can i stop batch/cmd from erasing old lines?
    « 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
    you're just jealous because the voices talk to me, and not you.

    Reno



      Hopeful
    • Thanked: 32
      Re: how can i stop batch/cmd from erasing old lines?
      « 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

      Ädamas

        Topic Starter


        Beginner

        Thanked: 1
        Re: how can i stop batch/cmd from erasing old lines?
        « 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
        you're just jealous because the voices talk to me, and not you.

        Reno



          Hopeful
        • Thanked: 32
          Re: how can i stop batch/cmd from erasing old lines?
          « Reply #19 on: May 22, 2009, 03:40:29 AM »
          no problem.  ;D

          glad the script works well