how to remove a few lines from a Unicode registry file using batch commands in Windows?

Posted by Cosmin on Stack Overflow See other posts from Stack Overflow or by Cosmin
Published on 2011-02-09T23:25:01Z Indexed on 2011/02/09 23:25 UTC
Read the original article Hit count: 285

Filed under:
|
|

Hi. I have a program who's generating some data in registry. I save it with "reg export HKCU\Software\ProgramName\Data data.reg" (Unicode format). I need to take it to other computer and import it there so the program from that computer could use the data. But I have to remove some text lines from data.reg. The text lines are easy to find because they contain some strings. Now I'm doing this manually (using Wordpad) every few days but maybe there is another way... Oh and I can't install other programs on these computers (the access is restricted) so I have to use batch/cmd files. What I tried so far: - redirecting the export to "con" but is visual only not in a variable; - using "for /F ..." but this works only with ANSI and removes blank lines.

Can somebody please help me...? Thank you.

© Stack Overflow or respective owner

Related posts about unicode

Related posts about cmd