SDJ_1
asked on
Delete Registry Value
I'm running the following command in my .cmd file to delete a registry key:
reg delete HKEY_LOCAL_MACHINE\SOFTWAR E\Microsof t\Windows\ CurrentVer sion\Insta ller\Folde rs /v "C:\Program Files\Symantec\Critical System Protection\" /f
The /f switch is suppose to force delete without prompting but it's not doing that, still getting the following message:
Delete the registry value C:\Program Files\Symantec\Critical System Protection"
/f (Yes/No)?
When I manually select Yes I get message:
ERROR: The system was unable to find the specified registry key or value.
Can someone please tell me where I'm going wrong with this.
Windows Server 2003
Thanks
reg delete HKEY_LOCAL_MACHINE\SOFTWAR
The /f switch is suppose to force delete without prompting but it's not doing that, still getting the following message:
Delete the registry value C:\Program Files\Symantec\Critical System Protection"
/f (Yes/No)?
When I manually select Yes I get message:
ERROR: The system was unable to find the specified registry key or value.
Can someone please tell me where I'm going wrong with this.
Windows Server 2003
Thanks
ASKER
Yes, tried without the quotes and getting error message:
ERROR: Invalid syntax.
ERROR: Invalid syntax.
try:
reg delete "HKLM\SOFTWARE\Microsoft\W indows\Cur rentVersio n\Installe r\Folders" /v "C:\Program Files\Symantec\Critical System Protection\" /f
reg delete "HKLM\SOFTWARE\Microsoft\W
ASKER
Thanks. That option did not work still prompting if I want to delete:
Delete the registry value C:\Program Files\Symantec\Critical System Protection"
/f (Yes/No)? y
ERROR: The system was unable to find the specified registry key or value.
Delete the registry value C:\Program Files\Symantec\Critical System Protection"
/f (Yes/No)? y
ERROR: The system was unable to find the specified registry key or value.
can you post a screen shot of the registry key for that.
ASKER
Here ya go
2014-07-29-17-52-02.png
2014-07-29-17-52-02.png
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
wow ok that did it! Thanks a lot!
After thinking about this a bit more and for anyone else coming across this the \" might be interpreted as a single " in DOS.
It has to do with the escape characters:
http://www.robvanderwoude.com/escapechars.php
It's interesting that you only have to do this at the end.
I tried C:\\Program Files\\ in a test which didn't work. Just need it at the end.
Glad it worked.
It has to do with the escape characters:
http://www.robvanderwoude.com/escapechars.php
It's interesting that you only have to do this at the end.
I tried C:\\Program Files\\ in a test which didn't work. Just need it at the end.
Glad it worked.
(EG: in the right window, under the name column, not the data column)
that should handle the error.
have you tried without the quotes?