Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Command to combine files (append?)
Name: kev100 Date: November 28, 2000 at 21:57:20 Pacific
Comment:
All:
I have a bunch of text files (file1.txt, file2.txt, file3.txt, etc.)
Is there a command that will combine all the files into 1 (i.e. just tack file2 to the bottom of file1, etc.)
I THOUGHT that the append command did that (and may have under old TRSDOS) but the description of it in DOS 6.22 does not seem to suggest such a function.
At any rate, any way to do the above function would be appreciated.
Name: W0rm Date: November 28, 2000 at 21:59:58 Pacific
Reply:
yeah, append would work, but i'd use copy since append was removed after 6.22.
copy file1.txt+file2.txt+file3.txt newfile.txt
0
Response Number 2
Name: kev100 Date: November 28, 2000 at 23:16:14 Pacific
Reply:
Thanks very much !
The copy methods works like a charm.
(BTW - I'm needing to do this because I have to edit a TON of little text files. It will be much easier to simply combine them into a few large files and work from there).
Thanks much !
0
Response Number 3
Name: Claude Moreau Date: November 29, 2000 at 05:42:54 Pacific
Reply:
Sorry to contradict WORM, but the APPEND command would not work (unless it does behave differently in TRS DOS than in MS-DOS.
Check this URL for more info.
http://www.easydos.com/append.html
Claude
0
Response Number 4
Name: W0rm Date: November 29, 2000 at 20:55:40 Pacific
Reply:
i dunno what kind of crap that is. but the dos 6.22 version I used to use was like doing a:
TYPE FILE1.TXT>>FILE2.TXT
so :P
0
Response Number 5
Name: robrob Date: April 7, 2001 at 18:36:30 Pacific
Reply:
Is it possible also two append 2 or more mp3 files using this command?
Thanks
Florent
0
Response Number 6
Name: ninad Date: April 8, 2001 at 03:58:38 Pacific
Reply:
That was great help from your guys..the copy command works great...i didnt knew it existed..and was looking for software to append files :-)
Summary: Redirect errors and results from DOS commands to a file with the > method...For example, to save a directory listing, type "DIR C:\ > C:\DIRS.TXT"...then to append the contents of D: you would type "D...
Summary: Only if you allow the batch scripts to create a small program that is then called and it edits the text file into a batch file, according to some fixed rules. In this simple case the program would act...
Summary: Hmm, it worked. That is strange- it means that a command has no relation to its source (ie. it throws out the command without staying connected to its goal,) and if the process is quick enough and clo...