vista任务管理器_在Vista中更改批处理文件的默认编辑器

vista任务管理器_在Vista中更改批处理文件的默认编辑器

vista任务管理器

Have you ever noticed that the File Types option was completely removed from Vista, and there’s no built-in way to change the editor for many file types? Sure, you can change the default application used to open the file, but you can’t change what happens when you right-click / edit.

您是否曾经注意到Vista中已完全删除“文件类型”选项,并且没有内置的方法来更改许多文件类型的编辑器? 当然,您可以更改用于打开文件的默认应用程序,但无法更改右键单击/编辑时发生的情况。

You can either directly hack the registry, or there’s a freeware utility that adds the functionality back… we’ll show you how to do both methods.

您可以直接修改注册表,也可以使用免费软件实用程序将其添加回功能中……我们将向您展示如何使用这两种方法。

vista任务管理器_在Vista中更改批处理文件的默认编辑器

Using the Registry Hack Method

使用注册表黑客方法

Open up regedit.exe through the start menu search or run box, and then browse down to the following key:

通过开始菜单搜索或运行框打开regedit.exe,然后向下浏览至以下键:

HKEY_CLASSES_ROOT\batfile\shell\edit\command

HKEY_CLASSES_ROOT \ batfile \ shell \ edit \ command

vista任务管理器_在Vista中更改批处理文件的默认编辑器

Double-click on the (Default) key to open it up, and then replace the path for notepad with the full path for your preferred editor, making sure to leave a space and then the %1 at the end (which inserts the current file name into the path)

双击(默认)键将其打开,然后用首选编辑器的完整路径替换记事本的路径,确保留一个空格,然后在末尾添加%1(用于插入当前文件)名称进入路径)

Using the Easy Method

使用简易方法

Using the freeware and open-source Types utility, you can easily change file types… just find the “bat” extension in the list, or filter by the “batfile” class, then open up the properties. You can easily replace the editor by just using the yellow icon next to the drop-down and choosing your preferred editor.

使用免费软件和开放源代码类型实用程序,您可以轻松更改文件类型……只需在列表中找到“ bat”扩展名,或按“ batfile”类进行过滤,然后打开属性。 您只需使用下拉菜单旁边的黄色图标并选择所需的编辑器,即可轻松替换该编辑器。

vista任务管理器_在Vista中更改批处理文件的默认编辑器

Of course, you can use this application to change the default editor for any file type, not just batch files.

当然,您可以使用此应用程序更改任何文件类型的默认编辑器,而不仅仅是批处理文件。

Download Types from sourceforge.net

从sourceforge.net下载类型

翻译自: https://www.howtogeek.com/howto/windows-vista/change-the-default-editor-for-batch-files-in-vista/

vista任务管理器