COPY v/s TYPE command

February 17, 2009 at 20:59:54
Specs: Windows XP
Please tell me all the drawbacks associated with COPY and TYPE commands.
I need to append data from one text file to another.
Why TYPE command is better than the COPY command?

See More: COPY v/s TYPE command

Report •

February 17, 2009 at 23:38:49
Type will convert unicode into plain text, or at least it does with ascii acceptable characters, copy will keep it in the same format if it is unicode.

Other than that they should both do a similar job at appending one file to another provided you get syntax right. Copy can append multiple files at a time and use wildcards to do so, which can mean fewer commands in certain situations.

It's not really to say which better, but which is better suited to your situation.

Report •

February 18, 2009 at 00:56:36
Thanks a lot for providing this info.
Actually I was facing problem while appending Unicode data into a text file.
Will it create any problem (bug) if i use COPY command instead of TYPE command?

Report •

February 18, 2009 at 01:01:50
Copy will combine ANY files. TYPE will choke on anything which is not TEXT.

If at first you don't succeed, you're about average.


Report •

Related Solutions

February 18, 2009 at 01:35:49
As long as you don't use the /b switch on copy to combine unicode text files all should be fine. If you do use the /b switch the two byte unicode identifier will appear in error at the append points.

It is however not a good idea to mix plain text into a unicode file or visa versa.

Report •

February 18, 2009 at 01:39:43
Thanks Judago San...
I really appreciate your comments.

Report •

Ask Question