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

Author Topic: what Batch Code will help me here  (Read 2968 times)

0 Members and 1 Guest are viewing this topic.

taylormade

    Topic Starter


    Greenhorn

    what Batch Code will help me here
    « on: February 22, 2009, 02:44:41 PM »
    I have a .txt file (txt1.txt) that has data in it.
    I want to add the contents of another text file (txt2.txt) AFTER the data in txt1.txt;
    In other words, add the contents of txt2.txt to txt1.txt.
    What batch file commands will do that?
     

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: what Batch Code will help me here
    « Reply #1 on: February 22, 2009, 02:58:40 PM »
    copy file1.txt+file2.txt result.txt
    I was trying to dereference Null Pointers before it was cool.

    devcom



      Apprentice

      Thanked: 37
      Re: what Batch Code will help me here
      « Reply #2 on: February 22, 2009, 03:10:36 PM »
      or
      Code: [Select]
      type file2.txt >> file1.txt
      Download: Choice.exe

      taylormade

        Topic Starter


        Greenhorn

        Re: what Batch Code will help me here
        « Reply #3 on: February 22, 2009, 05:48:29 PM »
        both acceptable ..
        Thank you to all.
        bob