5
1
I'm modifying an entry in the Windows registry. In the key there is a single value called (Default)
of type REG_SZ
. This value is not set.
I've tried using REG Add "HKEY_CURRENT_USER\SOFTWARE\Classes\.jpg" /f /v "(Default)" /t REG_SZ /d "PhotoViewer.FileAssoc.Tiff"
to change the data associated with (Default)
, but instead it creates a second (Default)
value underneath the original, like so:
How can I correctly replace this information without using a reg
file? I want to stick to the command line for the purposes of this project.
You don't need
/t REG_SZ
as the default value is already a string. – DavidPostill – 2016-03-22T10:00:36.667You're right. Edited this. – duenni – 2016-03-22T10:02:48.947