The system was unable to find the specified registry key or value
Posted: 10 Jan 2019 04:57
In a batch file I have:
This is what I get when I run it:
I have been able to code it a little different so it finds the key but then it doesn't recognize the /f and asks me if I want to delete it.
How can it be changed to find the key?
Thanks,
Docfxit
Code: Select all
set "RegKey="HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\TrayNotify""
reg delete %regkey% /v PastIconsStream=- /f
Code: Select all
C:\Windows\System32>reg delete "HKCU\Software\Classes\Local Settings\Software\Mi
crosoft\Windows\CurrentVersion\TrayNotify" /v PastIconsStream=- /f
ERROR: The system was unable to find the specified registry key or value.
How can it be changed to find the key?
Thanks,
Docfxit