Computing.Net > Forums > Disk Operating System > The copy command problem

Computing.Net: Over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to sign up now, it's free!

The copy command problem

Reply to Message Icon

Original Message
Name: charles_cp
Date: April 21, 2003 at 23:07:07 Pacific
Subject: The copy command problem
OS: win 2000 pro
CPU/Ram: 700/256
Comment:

COPY I006_1.txt + I006_2.txt + I006_3.txt I006.txt

I use this command to combo three text file to the I006.txt. I discover the last line of the I006.txt have a square.

Have any batch command cam edit the text file and auto to delete the square?



Report Offensive Message For Removal


Response Number 1
Name: JackG
Date: April 22, 2003 at 12:51:42 Pacific
Reply:

The "square" is a DOS "end of file" character inserted by the DOS COPY command when copying TEXT files.

You seem to be working with (or expect) Binary files format (Windows tends to treat all files a Binary), so you must tell the DOS COPY command that you want a Binary file, not a Text file. (See COPY /? for help.)

Try:

COPY I006_1.txt + I006_2.txt + I006_3.txt /B I006.txt

If the input files are binary files and may contain the "end of file" character anywhere in the files, it may be necessary to include an additional /B before the list of files to be concatenated together, to prevent DOS COPY from truncating one or more of the files when it sees an "end of file" character 1Ah.


Report Offensive Follow Up For Removal

Response Number 2
Name: charles_cp
Date: April 22, 2003 at 22:54:15 Pacific
Reply:

Thank you


Report Offensive Follow Up For Removal







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home



Results for: The copy command problem

NT DOS external Command Problem Need mor
    Summary: Name: ITGuy Date: November 16, 2001 at 19:51:36 Pacific Subject: NT DOS external Command problem again Comment: I posted this a while back but I am getting that problem again after I thought I fixe...
www.computing.net/answers/dos/nt-dos-external-command-problem-need-mor/8371.html

copy command in dos
    Summary: hello, how the copy command was prograamed in dos.and how it is combined to command.exe ...
www.computing.net/answers/dos/copy-command-in-dos/12489.html

DOS copy command
    Summary: Hi all, Is there a DOS command that will copy a hard drive, in it's ENTIRETY, to another drive on the system. That is to say boot sector and all, like cloning the drive. I am suspecting these clone so...
www.computing.net/answers/dos/dos-copy-command/12345.html






Which MP3 player do you have?

iPod/iPhone
Zune
Something Else
None


View Results

Poll Finishes In 4 Days.
Discuss in The Lounge
Poll History






Data Recovery Software