使Windows Vista Explorer预览窗格可用于更多文件类型

Have you ever noticed that many files don’t seem to work in the Preview Pane in Windows Vista’s Explorer?  Until recently the only way to work around this was a painful registry hack… but now there’s a utility that will let you easily add file types to the preview list.

您是否曾经注意到Windows Vista的资源管理器中的“预览窗格”中似乎没有许多文件起作用? 直到最近,解决此问题的唯一方法是痛苦的注册表破解……但是现在有了一个实用程序,可让您轻松地将文件类型添加到预览列表中。

This article is divided up into two sections… if you want to understand how it all works, you can read through the description of the registry hack. If you just want to get right to the utility, skip down to the bottom.

本文分为两部分……如果您想了解所有工作原理,可以通读注册表黑客的描述。 如果您只想使用该实用程序,请跳至底部。

The Painful Manual Registry Hack Method

痛苦的手动注册表破解方法

Scenario: We want to be able to preview reg hack (.reg) files.

场景:我们希望能够预览reg hack(.reg)文件。

The first thing we’ll want to do is navigate down to HKEY_CLASSES_ROOT\.reg. Once we are there, we need to check the value of the (Default) key to figure out if there is a ProgID registered, and what the name of it is.

我们要做的第一件事是向下导航到HKEY_CLASSES_ROOT \ .reg。 到那里后,我们需要检查(默认)键的值,以确定是否已注册ProgID,以及它的名称。

The ProgID is used so that multiple file extensions can have the same settings without duplicating information in the registry. This way the .reg and other keys can point to the “regfile” ProgID to get all their settings.

使用ProgID,以便多个文件扩展名可以具有相同的设置,而无需在注册表中重复信息。 这样,.reg和其他键可以指向“ regfile” ProgID以获取所有设置。

image

Next you’ll need to browse down to the ProgID key, where we’ll actually apply the hack: HKEY_CLASSES_ROOT\regfile. Once you are there, create a new key called shellex under it, and then create another key under that one with this name:

接下来,您需要向下浏览到ProgID密钥,我们将在其中实际应用该hack:HKEY_CLASSES_ROOT \ regfile。 到那里后,在其下创建一个名为shellex的新密钥,然后在该密钥下使用此名称创建另一个密钥:

{8895b1c6-b41f-4c1c-a562-0d564250836f}

{8895b1c6-b41f-4c1c-a562-0d564250836f}

This key is the unique ID that tells Windows Explorer you want to set a preview handler. Once you’ve created that key and selected it, you’ll see a new (Default) key on the right hand side which you’ll want to modify.

此项是唯一的ID,它告诉Windows资源管理器您要设置预览处理程序。 创建并选择该键后,您将在右侧看到一个要修改的新(默认)键。

image

Double-click on the (Default) key, and use the following text for the value:

双击(默认)键,并使用以下文本作为值:

{1531d583-8375-4d3f-b5fb-d23bbd169f22}

{1531d583-8375-4d3f-b5fb-d23bbd169f22}

This key is the unique ID for the Windows TXT Preview Handler, which I figured out by looking under the list of currently registered Preview Handlers in the registry:

此项是Windows TXT预览处理程序的唯一ID,我通过在注册表中当前已注册的预览处理程序列表下找到了它:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\PreviewHandlers

HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ PreviewHandlers

image

You could substitute any one of these preview handlers… if you wanted to register a media file preview handler, you could use {031EE060-67BC-460d-8847-E4A7C5E45A27} as the value instead of using the preview handler for text files.

您可以替换这些预览处理程序中的任何一个……如果您想注册媒体文件预览处理程序,则可以使用{031EE060-67BC-460d-8847-E4A7C5E45A27}作为值,而不是对文本文件使用预览处理程序。

At this point, you should be able to select a .reg file and see its contents in the Preview pane:

此时,您应该能够选择一个.reg文件,并在“预览”窗格中查看其内容:

image

This same method would work for any other file type, but that could get really tedious.

同样的方法适用于任何其他文件类型,但这可能真的很乏味。

Adding Preview File Types The Easy Way

轻松添加预览文件类型

Now that we know how it all works (or not, as you probably skipped down to this part), you can use the free PreviewConfig utility for Windows Vista, which is just extremely simple to use. Just select the file type on the left, and then select the handler you want for it on the right.

既然我们知道了它的工作原理(或者不知道,您可能已经跳过了这一部分),您可以使用Windows Vista的免费PreviewConfig实用程序,它使用起来非常简单。 只需在左侧选择文件类型,然后在右侧选择所需的处理程序即可。

image

You can choose either plain-text or media, which will register Windows Media Player to preview the file. This is useful for non-standard files like .mkv that might play fine in Windows Media player with the right plugins, but might not preview. Click the Apply button and you are done.

您可以选择纯文本或媒体,这将注册Windows Media Player来预览文件。 这对于非标准文件(例如.mkv)很有用,这些文件可能会在带有正确插件的Windows Media Player中正常播放,但可能无法预览。 单击“应用”按钮,操作完成。

Download PreviewConfig from winhelponline.com [mirror]

从winhelponline.com下载PreviewConfig [ 镜像 ]

翻译自: https://www.howtogeek.com/howto/windows-vista/make-windows-vista-explorer-preview-pane-work-for-more-file-types/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值