1
1
I have uninstalled a recent game called "Wolfenstein 2009", but somehow I had to do it manually.
I was able to delete files very easily, but here comes the tricky part.
I have following command to query the Windows 7 64Bit OS Registry for getting all entries having "Wolf" in their key/value:
REG Query HKLM\Software /F "Wolf" /S
Now I want to delete all these entries either by for
loop or a direct shortest command which can delete specific found multiple entries in shortest time.
I tried the following command but how to substitute variables in for loop is mystery as I don't do much batch scripting:
for /F "tokens=1,*" %%a in ('REG Query HKLM\Software /F "Wolf" /S') do (REG DELETE "%KEY%" /v %%a /f)
Can anyone help figuring this out ?
Although I cannot help you with a batch script, If you want to do it via Powershell I would be happy to help. – elf – 2017-10-23T19:30:34.947
Ok I have Powershell installed too, I can give it a shot, please post in answer. – Vicky Dev – 2017-10-23T19:31:12.727
The partial key, "wolf", might not be sufficient to exclude a vital key that has "wolf" as part of its name. I would use a tool such as Nirsoft's RegScanner to search for any undesired keys and values, select only those relevant, and delete the rest all at once with the tool. – DrMoishe Pippik – 2017-10-23T21:54:07.523