Hello i need to do this command on c++:
reg delete "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control" /v SystemStartOptions /f
And i tried using system("");
system("reg delete ""HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Control"" /v SystemStartOptions /f");
But im getting this error:
ERROR: The system was unable to find the specified registry key or value.
How i can fix this? I think problem is that double quotes in (""HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control"") becuase that command works on cmd. How i can do it correctly?