重新安装系统后,注册表里的信息都没有了,以前在通过右键可以打开一些文件的选择也没有了,于是我们可以自己修改注册表,把我们需要的命令添加到注册表里面
下面主要演示的是如果将notepad++添加到你的contextMenu中。其他的软件类似。
- Type regedit in Start Menu search box.
- Locate HKEY_CLASSES_ROOT > * > shell.
- Right-click shell and select New > Key.
- Rename the key to Open with Notepad.
- Create a new key below Open with Notepad (Right-click “Open with Notepad” and select New > Key) and call it command.
- Change the default value of command to F:\Program Files (x86)\Notepad++\notepad++.exe %1(notepad的安装路径,同时后面的%1,很重要,如果没有写,那么虽然可以用notepad++打开文件,但是文件的内容是看不到的,所以一定要在后面加%1).
- 右键通过 Open with Notepad 查看文件内容。