vbs - replace line in file
Posted on 2008-10-11
I need to replace a line in a file that could be found several times, not sure how to use a reg expression to do what I need, I get part of it replaced but not coming out how I need it.
For example, in a file lines found that look like:
I need to replace all the lines of PopServer=...... with PopServer=No-mail
So from these lines found in the file I need to make them look like
supose I had a file in d:\docs\mail\mail.ini that contained the lines I wanted to replace, how would I do that using a expression to find each line. I can do a replace on PopServer= but that is not doing me any good and not sure how to do this since I do not know what the values will be after the PopServer=....
Thanks for any help with this.