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.
Batch to edit 1st line of txt file
Name: Learning nerd Date: February 24, 2009 at 23:52:51 Pacific OS: Windows XP Subcategory: Batch
Comment:
I need to edit the header (1st) line of texrt file using bat file. Please help.
Name: stephenturns Date: February 25, 2009 at 00:22:10 Pacific
Reply:
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...
0
Response Number 2
Name: Learning nerd Date: February 25, 2009 at 00:39:05 Pacific
Reply:
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.
0
Response Number 3
Name: Mechanix2Go Date: February 25, 2009 at 05:42:49 Pacific
Reply:
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.
M2
0
Response Number 4
Name: Sen Hu Date: March 9, 2009 at 07:03:37 Pacific
Reply:
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
Summary: I am working on a batch program, the part I am needing assistance on is making it edit multiple lines of text in a text file. Basically the text file has file paths that all end with index.dat, I wan...
Summary: Hello, I am trying to insert the filename (minus the extension) in front of every line in a series of TXT files. I have put together code to make the change in a single txt file, but am lost as how t...