I have several processes that generate files with no extension at all and would like to add a custom context menu menu (i.e. be able to right click on them and select 'open in Notepad' or 'make .txt file' etc)

I know I can associate (add) a command (e.g. "OpenNotepad") for a particular filetype (extension), or all filetypes...

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\Shell\OpenNotepad]    ​      <--  All files/folders
[HKEY_CLASSES_ROOT\txtfile\Shell\OpenNotepad]    ​<-- .txt files

But how can I do this for files that have no extension?...

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\ ?? \Shell\OpenNotepad]      ​<--  Files with no extension?
  • Happy to provide an example, but don't want to get too side-tracked... So, for as example, Windows downloads Spotlight login page background images to: %LocalAppData%\Packages\Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy\LocalState\Assets. They are JPEG-format images (.JPG) but are stored as extensionless-GUIDs (e.g. 2e2156afe6cf9fc53c0cd36177d1216ccb0986dbdea7183d6a337db055ec041b)
    – Martin
    Jun 5 at 15:40

To add shell menu entries for files with no extension, use this registry branch:






Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.