How Win10 adds notepad to the right-click menu to improve startup efficiency

  
Add “Notepad”<.1.Win + R Open “Run”, enter “regedit” to open the registry.
2Target to "HKEY_CLASSES_ROOT/Directory/background/shell”.

3. Right click on the shell, select “New – Item", rename it to “Notepad", create a new sub-item named command under "Notepad> In the right window, double-click the “default” key value to bring up the “edit string” window.

4. Change the value data to the path of the Notepad program C:/Windows/System32/notepad.exe, OK.

5. The "Notepad" option appears in the right-click menu.
Right click "Open with notepad" Open file
1.Win+R open the run, enter regedit to open the registry.
2. Find [HKEY_LOCAL_MACHINE/SOFTWARE/Classes/*/shell primary key (if no new one is created).
3. Click the shell primary key, create a new primary key named notepad, in the right window, change the value of the default item to: open with Notepad.
4. Create a new command primary key under the notepad primary key. In the window on the right, change the value of the default item to: notepad %1 (note that there is a space between the notepad and the % symbol)! Finish!
Or copy the following code to Notepad and save it as a reg file. , import the registry. Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/*/shell][HKEY_LOCAL_MACHINE/SOFTWARE/Classes/*/shell/notepad]@="Open with "[HKEY_LOCAL_MACHINE/SOFTWARE/Classes/*/shell/Notepad/command]@="notepad %1"

Copyright © Windows knowledge All Rights Reserved