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.
dos appending last line of text fil
Name: colmite Date: July 29, 2005 at 15:08:17 Pacific OS: windowsXP CPU/Ram: 2gig ram 3.6ghz
Comment:
Hi there, Can some one tell me how I can append text to the last line of a text file? I need to be able to have text added right after text that is currently on a text document. I am using: echo my text>>test.txt
I am getting this text showing up at the end of a text docmument like this: example1 my text
I need this data to actually be set like this: example1my text
can anybody help me out with this? or tell me if there is a way to specify what line to put this text on?
Name: Mechanix2Go Date: July 29, 2005 at 23:22:55 Pacific
Reply:
Difficult, at best, with DOS.
With NT CMD.exe, life gets easier.
M2
If at first you don't succeed, you're about average.
0
Response Number 2
Name: colmite Date: July 30, 2005 at 03:12:53 Pacific
Reply:
Can you tell me how to do this with NT.CMD or XP.CMD? this will actually be a script that I will run via the imaging process and can run this in DOS or in windows.
I really appreciate any help you an give.
thx
0
Response Number 3
Name: wizard-fred Date: July 30, 2005 at 10:37:26 Pacific
Reply:
The problem is if the appended part appears on the next line, then you can't append. The file end with a new line command which has to be deleted so the appended part can appear on the same line.
My prefered method would be to write a utility program to test the line ending and rewrite the file as needed.
Summary: Hi. I have a text file "listfile.ini" with up to 50 entries all with the syntax: [code] ; Begin ABC series [ABC1] PATH="..\..\..\ABC1\" CMD="SetKey 11111-22222-33333-44444-55555" [ABC2] PATH="..\..\....
Summary: Hi! I would like to use a batch file to delete the last line of a text file and send the rest of the file to a new text file. I have duplicates rows in my file and need to delete only the last line. T...
Summary: From what I gather you only need to skip the first 3 lines of text and you want the rest of the file in a file with the same name but the extension .cln. If this is correct the below seemed to work fo...