Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adejones/91053edc57b60775cbc5fc209db43e93 to your computer and use it in GitHub Desktop.
Save adejones/91053edc57b60775cbc5fc209db43e93 to your computer and use it in GitHub Desktop.
@echo off
:: delete all file types
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /f
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text" /f
@reg delete "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text\command" /f
:: delete it for directory
@reg delete "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /f
@reg delete "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text" /f
@reg delete "HKEY_CLASSES_ROOT\Directory\shell\Open with Sublime Text\command" /f
:: delete for directory background
@reg delete "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Sublime Text" /f
@reg delete "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Sublime Text" /f
@reg delete "HKEY_CLASSES_ROOT\Directory\Background\shell\Open with Sublime Text\command" /f
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment