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.
Can someone tell me why when you use copy to combine files (copy text1.txt+text2.txt newtext.txt)the new file is not the same size as the sum of the original files?
Name: Ayexby Date: March 21, 2001 at 12:52:34 Pacific
Reply:
If you use the /b switch, the new file will be the same length as the sum of the two files.
According to DOS help, when combining files, the ASCII file type is the default, wheras binary is the default for copying a single file to a new name. And, when an ascii file is created, a CTRL-Z character is added to the end. If you dump the file contents, you'll see the 1A (26) (=CTRL/Z) character tacked on to the end.
0
Response Number 2
Name: Laurence Date: March 22, 2001 at 09:54:38 Pacific
Reply:
Three handy COPY commands: To "touch" a file: COPY/B filespec+,, To add an EOF char: COPY/A filespec/B+,, To remove an EOF char: COPY/B filespec/A+,,
Add/remove work only at the last char position. Embedded EOF chars have to be dealt with by other means.
Otherwise, debug can be used to your advantage. I'm not up to snuff on the details, but you can ask in news:alt.msdos.batch .
Thanks for the info! Your post allowed me to install an application on a laptop using only the copy command! (Very handy when it doesn't have a floppy and the only program on the machine is COMMAND.COM). Basically, I chopped the file up at the -Z places, sent each piece over, appended a -Z, and used copy to recombine them. Success! Thanks!
0
Response Number 4
Name: Jo Jones Date: March 15, 2002 at 05:02:11 Pacific
Summary: For what you are trying to do, rather than using 'copy' type commands, I would use a disc image utility such as VGA Copy. This copies the entire floppy disc image to a single file. When required, the ...
Summary: You need to make a secount Dos directory call it dos2, copy all you dos 6.22 files to it by laplink go to http://www.bootdisk.com/ and download the Dos 6.22 boot disk file. Make your book disk,make su...
Summary: Hi, Yes you can overcome this problem but you will need some manual work for this. First of all its only possible if your hard drive has FAT16 file system. If you already convert to FAT32 you can't in...