Check out the Pastebin Gadgets Shop. We have thousands of fun, geeky & affordable gadgets on sale :-)Want more features on Pastebin? Sign Up, it's FREE!

Deleting Reg Keys

By: a guest on Dec 27th, 2012  |  syntax: Batch  |  size: 0.15 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print  |  QR code  |  clone
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. for /f "skip=3 delims=" %%A in ('reg query "HKEY_LITERAL_REG_PATH"') do (
  2.         echo %%A | findstr "HKEY" > nul
  3.         if not errorlevel 1 (reg delete %%A)
  4. )
clone this paste RAW Paste Data