Here is a screenshot what I'm working with:
screenshot of regedit directory
I wanna run a script that will set every default key in each subdirectory named mplayerc64.*\shell to "enqueue" (no quotes)
Here is a screenshot what I'm working with:
screenshot of regedit directory
I wanna run a script that will set every default key in each subdirectory named mplayerc64.*\shell to "enqueue" (no quotes)
PowerShell:
Get-ChildItem Registry::HKCR\mplayerc64.* -Recurse |
Where PSChildName -eq 'Shell' |
Set-ItemProperty -Name '(Default)' -Value 'enqueue'
Aliased:
gci Registry::HKCR\mplayerc64.* -s | ? PSChildName -eq 'Shell' | sp -Name '(Default)' -Value 'enqueue'
Now you can apply the new .reg file, see if it works as needed, and can revert to the original settings using the first (unmodified) exported file.
N.B. Massive Registry changes can cause issues. Make a disk image, to be safe, before making these changes.