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 file read and edit a line
Name: AlbitzT Date: November 19, 2008 at 04:10:54 Pacific OS: XP/2k3 CPU/Ram: NA Product: NA
Comment:
Example of current batch file:
Line1 Line2 Line3 Line4 MY PROG NAME=%PROGNAME% Line6 Line7 SET THIS IS IT= LINE9 MY PROG NAME= LINE11
I need my batch file to search the existing batch file and edit the "MY PROG NAME=" line to "MY PROG NAME=C:\Program Files..."
The catch is their are two of the same entries. IE: MY PROG NAME=%PROGNAME% and MY PROG NAME=
The second entry will always be on the same line in the batch file if that helps.
**This is not the actual file but a lot shorter for example purposes**
If any additional info is required please let me know.
Summary: I have a batch file that I change the date(file name) everyday and then run. I would like the batch file to read in files or automatically change the file it is looking for by using the date (actually...
Summary: Hello All! I have a formatted text file that I wish to read with a batch file for further processing. It is formatted like so: o,object1.sql r,report1.xml r,report2.xml b,table1.sql . . . and...
Summary: hello Ive read a bit about reading and displaying a single line from a text file to the screen. But I'm after (if possible) to read a file copy a part of it and copy/inset it in to another file. So ...