We need to run some commands that include " within the command. For example, using this command to disable the system screensaver in the registry:
reg delete "HKEY_CURRENT_USER\Control Panel\Desktop" /v scrnsave.exe /f
The trouble is that the Windows registry has spaces in some of it's paths, despite going to the effort of replacing spaces with underscores in HKEY_CURRENT_USER. To get around the spaces you have to use " within the command but if you use these commands within ShellExecute() it will fail as the extra speech marks will interfere with the command being parsed.
Therefore, my question is, can you replace " with some kind of control character within a ShellExecute command? Or is there another way of doing this? Would the command be loaded into a variable and then parsed somehow?