1.

Solve : How to copy some information with DOS Commands to a specific line??

Answer» HELLO,
I am trying to copy some information to a specific file that has already information (around 100 lines) but I only want to replace some strings in a specific lines without "touching" the rest of the file.

ANYONE has ideas how to do this with DOS Commands?

thxsee here for a start. I submitted a vbscript to replace strings in files. Also there are other batch SOLUTIONS on that thread. this will give you a start.There is also an MS-DOS utility called "fart.exe" (Find And Replace TEXT) which may do what you need.

As far as I know it replaces all occurrences of one sub-string with another sub-string.

I don't think you can specify a "range of text lines" to search, but it may do what you need.

Goto http://fart-it.sourceforge.net and follow the sourceforge link.

Hope that helps,
JAMES


Discussion

No Comment Found