Append text using CMD

  • Thread starter Thread starter Ayush
  • Start date Start date
Copy con fileb.txt

type in what you want

press CTRL+Z or F6 then enter

Copy filea.txt + fileb.txt File

filea.txt will now have the contents of filea.txt and fileb.txt
 
oops dropped part of a line
"Copy filea.txt + fileb.txt File"
should read
"Copy filea.txt + fileb.txt filea.txt"


Bob said:
Copy con fileb.txt

type in what you want

press CTRL+Z or F6 then enter

Copy filea.txt + fileb.txt File

filea.txt will now have the contents of filea.txt and fileb.txt
Anyone know how to append text to a text file by cmd [Command Prompt]
 
You are great. That's what i want [ >> ]. You know where i can know these
commands like > or >> that are not listed when typed help at command prompt.

--
Ayush [ Be ''?'' Happy ]
|
| "Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
| | > Anyone know how to append text to a text file by cmd [Command Prompt]
| >
| > --
| > > Ayush [ Be ''?'' Happy ]
| >
| >
|
| Try this:
|
| echo This is a new line >> c:\test.txt
|
|
 
That can work if i have to append txt files but i want to append date and
time that does't work with this method. The method Pegasus suggested is
perfect.
Well, thanks for your time and suggestion
--
Ayush [ Be ''?'' Happy ]

| Copy con fileb.txt
|
| type in what you want
|
| press CTRL+Z or F6 then enter
|
| Copy filea.txt + fileb.txt File
|
| filea.txt will now have the contents of filea.txt and fileb.txt
|
| Ayush wrote:
|
| > Anyone know how to append text to a text file by cmd [Command Prompt]
| >
|
 
Thanks but i already solved it by Pegasus reply.

--
Ayush [ Be ''?'' Happy ]
| This works on Win2k:
| echo "Your text goes here" >> c:\PathToYourFile.txt
| Louis
|
| "Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
| | > Anyone know how to append text to a text file by cmd [Command Prompt]
| >
| > --
| > > Ayush [ Be ''?'' Happy ]
| >
| >
|
|
 
These redirection characters are fundamental to the operation
of the Command Processor but I do not know where they
are documented. You might be able to find something if you
google for these words:
redirect append "standard output" "error output"


Ayush said:
You are great. That's what i want [ >> ]. You know where i can know these
commands like > or >> that are not listed when typed help at command prompt.|
| "Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
| | > Anyone know how to append text to a text file by cmd [Command Prompt]
| >
| > --
| > > Ayush [ Be ''?'' Happy ]
| >
| >
|
| Try this:
|
| echo This is a new line >> c:\test.txt
|
|
 
I put the whole line [ that is redirect append "standard output" "error
output" [ a mistake ]] and you know what ? The first link got all the info i
want. Thanks again.

h [ Be ''?'' Happy ]
| These redirection characters are fundamental to the operation
| of the Command Processor but I do not know where they
| are documented. You might be able to find something if you
| google for these words:
| redirect append "standard output" "error output"
|
|
| "Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
| | > You are great. That's what i want [ >> ]. You know where i can know
these
| > commands like > or >> that are not listed when typed help at command
| prompt.
| >
| > --
| > > Ayush [ Be ''?'' Happy ]
| > | > |
| > | "Ayush" <ayushmaan.j[aatt]gmail.com> wrote in message
| > | | > | > Anyone know how to append text to a text file by cmd [Command
Prompt]
| > | >
| > | > --
| > | > > Ayush [ Be ''?'' Happy ]
| > | >
| > | >
| > |
| > | Try this:
| > |
| > | echo This is a new line >> c:\test.txt
| > |
| > |
| >
| >
|
|
 
Back
Top