Log inRegister

Associate any unknown file type with Notepad++

Log files usually have the date of the log file as extension. You want to open them with Notepad++, but not by right-clicking the file and choosing Edit with Notepad++, but simply by double-clicking the file. Is that possible? Yes:

In the registry, go to:
  • HKEY_CLASSES_ROOT\Unknown\shell
  • add a key notepad
  • under notepad, add a key command
  • change the command key's (Default) string value in:
    • for 32-bit: "C:\Program Files (x86)\Notepad++\notepad++.exe" "%1"
    • for 64-bit: "C:\Program Files\Notepad++\notepad++.exe" "%1"
  • now change the HKEY_CLASSES_ROOT\Unknown\shell key's (Default) string value in notepad (default is: openas)
Try to open any unknown file by double-clicking it: it's opened in Notepad++!


source: How to open unknown extensions with notepad (microsoft.com)


extension extensions
This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback
This page was cached on 12 Oct 2022 - 06:54.