[BATCH]Lege regel met echo script

Pagina: 1
Acties:
  • 248 views sinds 30-01-2008

  • Rush
  • Registratie: Juli 2000
  • Laatst online: 01-04-2024

Rush

joris is

Topicstarter
Ik heb een klein echo script gemaakt. Dit script moet bepaalde waarden op maximaal 5 regels zetten.
code:
1
2
3
4
5
echo 1 >> tmp
echo 2 >> tmp
echo 3 >> tmp
echo 4 >> tmp
echo 5 >> tmp

Dit doet hij allemaal goed. Nu heb ik alleen als ik de tekstfile open dat hij nog een regel automatisch onder die 5 zet. En hij moet gewoon sluiten bij die laaste regel. Iemand een id om dit te omzijlen?

[ Voor 7% gewijzigd door Rush op 12-03-2004 13:40 ]

tremble and despair for i am power!


  • Wirf
  • Registratie: April 2000
  • Laatst online: 19:27
echo -n 5 >> tmp

Heeft sinds kort zijn wachtwoord weer terug gevonden!


  • curry684
  • Registratie: Juni 2000
  • Laatst online: 12-05 22:23

curry684

left part of the evil twins

Batchfiles horen in het specifieke subforum (Windows Operated Systems of Non-Windows Operating Systems) maar daar ik niet kan afleiden of je nu MS-DOS, Win3.11, FreeBSD, Bash, Ash, Win95, AmigaDOS of WinXP aan het scripten bent gaat ie op slot. Succes :)

Professionele website nodig?


Dit topic is gesloten.