Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: REG .REG EDIT PARSE EXPORT REGISTRY SEARCH REPLACE FILEGETW FILEPUTW UNICODE
To see this, simple open the exported .reg file using the FileBrowser tool provided with WinBatch and view in Hex mode. You will see that each character is delimited with a 00 (null). This tells you that it is a Unicode file.
We have added a lot of Unicode support to WinBatch.
Here is some sample code that should help:
;=========Modify these variables as needed============== find = 'n02luser' ;Enter current login name here (Case Sensitive) replace = 'Tim' ;Enter new login name here infilename = DirScript():'input.reg' outfilename = DirScript():'output.reg' ; Read the unicode reg file into a WIL variable indata = FileGetW(infilename) ; Replace all instances of a string outdata = StrReplace(indata, find, replace) ; Write the WIL variable to a unicode reg file FilePutW(outfilename, outdata) Exit
Article ID: W18227
Filename: Edit a REG File.txt
File Created: 2009:09:03:11:41:28
Last Updated: 2009:09:03:11:41:28