I am quite familiar with this well-known replace text solution:
Problem is, when I apply it to a REG file, it does not reconstruct the file correctly. I'm gonna have to include a screenshot for this one:
![Posted Image]()
To the left is original, to the right - reconstructed. How would I edit the file maintaining its format?
P.S. Pardon me for the big image, I am not yet sure what is the hide tag in the forum.
[ autoit ]
$szText = FileRead($szFile,FileGetSize($szFile)) $szText = StringReplace($szText, "replace me", "with me") FileDelete($szFile) FileWrite($szFile,$szText)
Problem is, when I apply it to a REG file, it does not reconstruct the file correctly. I'm gonna have to include a screenshot for this one:
![Posted Image](http://i46.tinypic.com/nz0qjo.jpg)
To the left is original, to the right - reconstructed. How would I edit the file maintaining its format?
P.S. Pardon me for the big image, I am not yet sure what is the hide tag in the forum.