Add "Open with" to the Context Menu for a particular file, like .js, in windows

0

I want to add a context menu option only for .js files, so that I can open them with a software (like atom.exe, or node.exe)

Similar to this: howtogeek.com/add-open-with-notepad-to-the-context-menu-for-all-files but for particular files (.js in my case) instead of all files.

I tried to do the same thing as described in the above howtogeek link on the registry key HKCL\.js\shell\... (instead of on HKCL\*\shell\...) but that didn't work.

How can I do that?

laggingreflex

Posted 2014-12-04T22:52:33.083

Reputation: 3 498

Do it in the HKEY_CLASSES_ROOT\JSFile\shell registry key instead of HKEY_CLASSES_ROOT\.js\shell. Here JSFile is data of default value of the HKEY_CLASSES_ROOT\.js registry key. – JosefZ – 2014-12-05T11:16:29.223

@JosefZ Hmm didn't work for me. On closer looks, it doesn't even seem to have any other options that I do have on my .js files' context menu (like "open with sublime text"..) – laggingreflex – 2014-12-05T14:38:55.553

Which Windows version? This article could help: How to Add Any Application Shortcut to Windows Explorer’s Context Menu.

– JosefZ – 2014-12-05T20:48:23.740

@JosefZ I'm on windows 8. Not sure why this isn't working for me. I even changed the existing option of "edit" but the change didn't take place. http://i.imgur.com/pcC70NF.png It seems my JSFile registry key is somehow detached from my .js files' context menu options. And yes, I've even tried restarting the the system.

– laggingreflex – 2014-12-05T22:21:45.220

No answers