Skip to content

Instantly share code, notes, and snippets.

View dleidert's full-sized avatar
🏠
Working from home

Daniel Leidert dleidert

🏠
Working from home
View GitHub Profile
@dleidert
dleidert / Set notepad++ as default edit program for .html files.md
Last active February 25, 2019 12:36
Set notepad++ as default edit program for .html files
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\.html\shell\edit\command /f /ve /t REG_EXPAND_SZ /d "\"^%ProgramFiles^%\Notepad++\notepad++.exe\" %1"

This will create a new key and add an Edit option to the file context menu!

@dleidert
dleidert / Set notepad++ as default edit program for text files.md
Created February 25, 2019 12:35
Set notepad++ as default edit program for text files
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\edit\command /f /ve /t REG_EXPAND_SZ /d "\"^%ProgramFiles^%\Notepad++\notepad++.exe\" %1"

This will overwrite the default value!

@dleidert
dleidert / Set notepad++ as default edit program for text files.md
Created February 25, 2019 12:35
Set notepad++ as default edit program for text files
REG ADD HKEY_LOCAL_MACHINE\SOFTWARE\Classes\SystemFileAssociations\text\shell\edit\command /f /ve /t REG_EXPAND_SZ /d "\"^%ProgramFiles^%\Notepad++\notepad++.exe\" %1"