win7 定制自己的contextMenu

重新安装系统后,注册表里的信息都没有了,以前在通过右键可以打开一些文件的选择也没有了,于是我们可以自己修改注册表,把我们需要的命令添加到注册表里面

下面主要演示的是如果将notepad++添加到你的contextMenu中。其他的软件类似。

  1. Type regedit in Start Menu search box.
  2. Locate HKEY_CLASSES_ROOT > * > shell.
  3. Right-click shell and select New > Key.
  4. Rename the key to Open with Notepad.
  5. Create a new key below Open with Notepad (Right-click “Open with Notepad” and select New > Key) and call it command.
  6. Change the default value of command to  F:\Program Files (x86)\Notepad++\notepad++.exe %1(notepad的安装路径,同时后面的%1,很重要,如果没有写,那么虽然可以用notepad++打开文件,但是文件的内容是看不到的,所以一定要在后面加%1).
  7. 右键通过 Open with Notepad 查看文件内容。

猜你喜欢

转载自chen106106.iteye.com/blog/1748580
今日推荐