Batch to edit 1st line of txt file

February 24, 2009 at 23:52:51
Specs: Windows XP
I need to edit the header (1st) line of texrt file using bat file.
Please help.

See More: Batch to edit 1st line of txt file

Report •

February 25, 2009 at 00:22:10
What information do you need to edit? Is it text you want to add or change? Is it for one file only? Is the text you need to edit predefined?

Need some more information...

Report •

February 25, 2009 at 00:39:05
I have a text file which contains a header.
rest of the data in text file has equal row length. I want to add blank spaces to the header to have same row length as rest.

I want to do this with the help of batch as i cant run a Vb script on the machine.

Report •

February 25, 2009 at 05:42:49
If you want to get this moving post the first few lines.

Or wait for a mindreader.

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


Report •

Related Solutions

March 9, 2009 at 07:03:37

I agree that some more info would have been helpful. But, I will make some assumptions. I wil assume that you want to change
the first line in some file X.txt from something to "A B C". The following commands in biterscripting will do that.

var str content ; cat X.txt > $content
lal "1" "A B C" $content > X.txt

biterscripting is free at .

Report •

Ask Question