79667908

Date: 2025-06-16 16:09:48
Score: 0.5
Natty:
Report link

With good hint from AdrianHHH's answer
I find a almost best way what I need when originally asked question.

Now I have this option enabled for this example file extension:
enter image description here

So basically its can be done with modify registry key:

"HKEY_CLASSES_ROOT\SystemFileAssociations\[.YourExtension]"

with add command for 'batch-edit'.

I share ready example for add context menu to .ps1 file context menu. Just copy this bellow, paste to any editor and save it as reg file - eg. :"C:\NP++l450.reg".


Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.ps1\Shell\Edit with Notepad++ from line 450\Command]
@="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\" -n450 %*"

Next just run this file and new entry Context Menu shall appear for ps1 file.

Only one thing what is missing and I can't figure out how to make its icon file on the left:
enter image description here
so if you know how to add that icon to this context menu of that file extension please reply anytime.

Reasons:
  • Blacklisted phrase (0.5): I need
  • Blacklisted phrase (1.5): please reply
  • Whitelisted phrase (-1): solution is
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: MikeZetPL