Computing.net: Question & Answers Forum Latest Questions

computing
  • 0
  • 0

Is it possible to delete a registry key only if it exists with a batch file? For example, I would like to completely delete the following registry keys ‘KeyName’ without confirmation. REG DELETE “HKCU\Software\CompanyName\ProductName\KeyName” /F REG DELETE “HKLM\SOFTWARE\CompanyName\ProductName\KeyName” /F REG DELETE “HKCU\Software\Wow6432Node\CompanyName\ProductName\KeyName” ...