Are you sure there isn't something else going on here? The comma doesn't
get stripped for me. I tried it on an XP machine as well as a Windows 2000
Server machine. The way I tested was to manually create a value in regedit,
export the key, delete the key, and merge the .reg file. All went through
fine. Here are the contents of my .reg file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\temp]
"test"="something with a comma,"
Ray at work
"Barney" <(E-Mail Removed)> wrote in message
news:0ca801c5363c$50afbfc0$(E-Mail Removed)...
> How can I add a string value to the registry in a .reg
> file if the string ends in a comma?
>
> For example, say I have a .reg file something like . . .
>
> [HKEY_LOCAL_MACHINE\SOFTWARE\....]
>
> "MyVariable"="MyValue,"
>
> The comma is stripped out when the reg file is imported.
> Do I have to escape it?
|