1. @echo off
  2.  
  3. title Shortcut arrow remover Windows 7
  4. mode con:cols=80 lines=4
  5.  
  6. echo You have to run this as admin or it won't work.
  7. echo.
  8. echo.
  9.  
  10. pause
  11. cls
  12.  
  13. :: Prompts user to make a choice for removal or restore of the default icon. Automatically quits after 30s if no choice is made.
  14. CHOICE /C ABC /D C /T 30 /M "A removes the arrow, B puts it back. C exits."
  15.  
  16. IF ERRORLEVEL 3 GOTO exit
  17. IF ERRORLEVEL 2 GOTO add
  18. IF ERRORLEVEL 1 GOTO remove
  19.  
  20. :: Adds a reg key which changes icon used for overlaying onto shortcuts. "49" is a blank icon.
  21. :remove
  22. REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /t REG_SZ /d "C:\\Windows\\System32\\shell32.dll,49" /f
  23. goto explorer
  24.  
  25. :: Deletes the key created above so the regular arrow icon is used.
  26. :add
  27. REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /va /f
  28. goto explorer
  29.  
  30. :: Restarts explorer so changes have an immediate effect.
  31. :explorer
  32. taskkill /f /IM explorer.exe
  33. start explorer.exe
  34. goto exit
  35.  
  36. :exit
  37. exit