Help - Search - Members - Calendar
Full Version: Problem with TXTReplace
The CD Forum > The CD Forum > WinBuilder
royalbox
Hello,
Using winbuilder 0.75 beta6.

When I include this line:
CODE
TXTReplace,%project_temp%\regional.reg,"HKEY_CURRENT_USER","WB_default"

The file is erased except for a little box symbol as the first character. If it helps, a horizontal scrollbar also appears yet the line ends after the first box character. The file is now 4 bytes. I tried with or without the quotes, and I tried including the whole line.

I thank thee.
psc
QUOTE (royalbox @ Jan 23 2009, 05:03 PM) *
Hello,
Using winbuilder 0.75 beta6.

When I include this line:
CODE
TXTReplace,%project_temp%\regional.reg,"HKEY_CURRENT_USER","WB_default"

The file is erased except for a little box symbol as the first character. If it helps, a horizontal scrollbar also appears yet the line ends after the first box character. The file is now 4 bytes. I tried with or without the quotes, and I tried including the whole line.

I thank thee.

In the current WB version TXTReplace writes ANSI text only into the file.

Because a *.reg is UNICODE, that is incompatible, and you will destroy the *.reg

Peter
royalbox
Okay, thanks a lot I'll find another way to do it.

By the way, before anyone says, I now realise that line should have been:
CODE
HKEY_LOCAL_MACHINE\WB_default


I thank thee.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.