Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: reg.exe /delete /v /f prompts me yes/no to delete value

08 Sep 2015   #1
umphorton

Windows 7 32 and 64 bit
 
 
reg.exe /delete /v /f prompts me yes/no to delete value

The vendor uninstall left 97 registry entries. I am trying to delete them with the reg.exe command. I have Windows 7 64 bit. I have the entries in a text file and I am using this command to delete them... it works good except for 1 which asks me yes/no to delete it.

for /f "usebackq delims==" %a in (value.txt) do (reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders /v "%a" /f)

Here are a few of the entries in value.txt:
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\graphics
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\enx\graphics
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\enx\demos
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\enx\built\standard\web
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\enx\built\standard\getstarted
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\enx\built\standard\email
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\enx\built\standard\dictation
C:\Program Files (x86)\Nuance\NaturallySpeaking10\tutorial\enx\built\standard\correction
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Dragon Medical 10.1
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Dragon Medical 10.1\Dragon Medical Tools
C:\ProgramData\Nuance\NaturallySpeaking10\Data\enx
C:\ProgramData\Nuance\NaturallySpeaking10\Data\enx\samplecommands
C:\ProgramData\Nuance\NaturallySpeaking10\Data
C:\ProgramData\Nuance\NaturallySpeaking10\RoamingUsers
C:\ProgramData\Nuance

Any idea why the force option works on some but not all entries? Once I type Y and enter it deletes the key.

(reg delete HKLM\SOFTWARE\Wow6432Node\Voice\SpeechRecognition\Engine\" /f)
Permanently delete the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Voice\SpeechRecognition\Engine" /f (Yes/No)?

(reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders /v "C:\Program Files (x86)\Nuance\NaturallySpeaking10\Program\lhsp\rsstdv2\enu\" /f)
Delete the registry value C:\Program Files (x86)\Nuance\NaturallySpeaking10\Program\lhsp\rsstdv2\enu" /f (Yes/No)?


My System SpecsSystem Spec
.
09 Sep 2015   #2
Pyprohly

Windows 10, Windows 8.1 Pro, Windows 7 Professional, OS X El Capitan
 
 

Quote   Quote: Originally Posted by umphorton View Post
(reg delete HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders /v "C:\Program Files (x86)\Nuance\NaturallySpeaking10\Program\lhsp\rsstdv2\enu\" /f)
Delete the registry value C:\Program Files (x86)\Nuance\NaturallySpeaking10\Program\lhsp\rsstdv2\enu" /f (Yes/No)?
Interesting. I was able to replicate your problem, and from my testing it appears that the Reg command will always prompt you yes/no when deleting a registry value with a name that ends in a backslash. And this is regardless of whether the value exists or not: any value ending in a backslash will prompt you yes/no.

Quote   Quote: Originally Posted by umphorton View Post
Once I type Y and enter it deletes the key.
Not for me. Whether the key being deleted exists or not, I always receive the same error message:

C:\>reg delete "HKCU\test" /v "Test\Value\" /f
Delete the registry value Test\Value" /f (Yes/No)? y
ERROR: The system was unable to find the specified registry key or value.

and the registry value is not deleted.

I was able to overcome the problem by doubling up the last backslash in the Reg command. Backslashes anywhere else in the value name should not be doubled.

C:\>reg delete "HKCU\test" /v "Test\Value\\" /f
The operation completed successfully.

This successfully deletes the value of "Test\Value\" under the key of "HKCU\test".
My System SpecsSystem Spec
09 Sep 2015   #3
umphorton

Windows 7 32 and 64 bit
 
 

I will give that a try... Thanks.
My System SpecsSystem Spec
.

09 Sep 2015   #4
umphorton

Windows 7 32 and 64 bit
 
 

That was my issue. Thanks again.
My System SpecsSystem Spec
Reply

 reg.exe /delete /v /f prompts me yes/no to delete value




Thread Tools Search this Thread
Search this Thread:

Advanced Search




Similar help and support threads
Thread Forum
Delete key non-responsive, doesn't delete
Hi, for some reason I can no longer use the Delete key to move files to the recycle bin, delete text, et cetera. I can still use Shift+Delete to permanently remove files et cetera, but using the Delete key by itself does not do anything whatsoever. This also doesn't appear to be a hardware issue,...
General Discussion
Cannot delete contacts - delete greyed out
I am using Windows Live Mail in W7 Home Premium. I need to delete certain contacts that have appeared and are variations of existing contacts. When I left click on the variation "Delete" is greyed out, as is the large red cross in the ribbon. Can someone please supply an answer to enable...
Browsers & Mail
Unable to delete a file,can't delete it can't shred it,
I looked at my firewall events earlier and i saw a file had been trying to connect to the internet but had been blocked by my firewall. Whenever i install a program i am unsure of i block the exe file from connecting to the internet until i'm happy its a safe program. The file is...
General Discussion
Delete Account Function Missing I Cannot Delete Temporary User Account
Good Day Everyone a few hours ago, I just finished installing Windows Professional x32 and had a problem with deleting the windows.old because of the permission bug. Well I managed to delete the Windows.old by editing my security and user however when I log-offed, I saw another user account...
General Discussion
Outlook 2010 and IMAP - DELETE Does DELETE
Hi there Be careful with IMAP and Outlook 2010 as the DELETE really does DELETE stuff off the server. In Outlook 2007 you got a line through the items and had to do EDIT==>PURGE to delete stuff off the server so be careful if you really DON'T want to physically delete mail from the server when...
Microsoft Office


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 19:31.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App