I have a registry string containing double quotes that I need to edit. I know that "ignores quotes or something like that." I tried a string literal, but that gave me 30+ errors. Anyone have any suggestions? Heres the code block:
RegistryKey mavroKey = Registry.LocalMachine;
RegistryKey mavbridgeKey = mavroKey.OpenSubKey("SYSTEM\\CurrentControlSet\\services\\MavBridge\\", true);
mavbridgeKey.SetValue("ImagePath", " ", RegistryValueKind.String);
mavbridgeKey.Close();
String value
"C:\Mavro\MavBridge\Server\MavBridgeService.exe" /service /data "..\Data"
Thanks Trevor Haines
source
share