1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Batch file help?

Discussion in 'HTML, Graphics & Programming' started by JUMPURS, 25 Jan 2006.

  1. JUMPURS

    Capodecina

    Joined: 27 Sep 2004

    Posts: 10,965

    Location: The Ledge Beyond The Edge

    ok basically i need to know if there is a command to copy the contents of 1 text file into another at the end of it.
    So basically i need to copy whats inside one.txt into two.txt
    any ideas??

    Cheers
     
  2. matja

    Hitman

    Joined: 29 Sep 2005

    Posts: 787

    Location: St Neots

    if '1.txt' contained 'world' and '2.txt' contained 'hello ', then 'type 1.txt >> 2.txt' would make '2.txt' become 'hello world'.
    > is overwrite redirection
    >> is append redirection
     
  3. JUMPURS

    Capodecina

    Joined: 27 Sep 2004

    Posts: 10,965

    Location: The Ledge Beyond The Edge

    ahhhh cheers fantastic,
    I was trying everything but type lol