desktop.ini_我一直看到这些desktop.ini文件是什么?

desktop.ini

desktop.ini

sshot-3

Have you ever seen those weird desktop.ini files that seem to pop-up everywhere? The truth is that they do serve a purpose and Windows uses them to identify how a folder should be displayed, much like the .DS_Store files used in OS X.

您是否曾经看过那些似乎到处弹出的怪异的desktop.ini文件? 事实是它们确实是有目的的,Windows使用它们来标识文件夹的显示方式,就像OS X中使用的.DS_Store文件一样。

When you create a new folder in Windows it is created with the standard folder icon, one common use of the desktop.ini file is to use to it set a custom icon for a folder, however this is not the only thing that it is used for. A typical desktop.ini will look like something like this:

在Windows中创建新文件夹时,它是使用标准文件夹图标创建的,desktop.ini文件的一种常见用法是使用它为文件夹设置自定义图标,但这并不是唯一的使用方法对于。 典型的desktop.ini看起来像这样:

[.ShellClassInfo]
ConfirmFileOp=0
IconFile=Folder.ico
IconIndex=0
InfoTip=Type Your InfoTip Here.
[.ShellClassInfo]
ConfirmFileOp=0
IconFile=Folder.ico
IconIndex=0
InfoTip=Type Your InfoTip Here.

The desktop.ini file can contain alot of attributes but the following custom attributes are the most common:

desktop.ini文件可以包含很多属性,但是以下自定义属性是最常见的:

  • ConfirmFileOp

    ConfirmFileOp
  • IconFile

    图标文件
  • IconIndex

    图标索引
  • InfoTip

    信息提示

ConfirmFileOp If set to 0, avoids the “You Are Deleting a System Folder” when deleting or moving a folder.

ConfirmFileOp如果设置为0,则在删除或移动文件夹时避免使用“正在删除系统文件夹”。

IconFile Specify a custom icon file. You can use either a .ico, .exe or .dll file.

IconFile指定自定义图标文件。 您可以使用.ico,.exe或.dll文件。

IconIndex Specify the index for a custom icon. If the file assigned to IconFile only contains a single icon, the IconIndex should be set to 0.

IconIndex指定自定义图标的索引。 如果分配给IconFile的文件仅包含一个图标,则IconIndex应该设置为0。

InfoTip A string of text that will be displayed when you hover over the folder.

InfoTip悬停在文件夹上时将显示的文本字符串。

As you can see the desktop.ini file holds folder customization information. They are hidden by default and will only be displayed if you choose to Display Protected Operating System Files by unchecking the checkbox.

如您所见,desktop.ini文件包含文件夹自定义信息。 它们默认情况下是隐藏的,并且仅在您通过取消选中显示受保护的操作系统文件时才显示。

sshot-3

You can customize your folders by creating your own desktop.ini folder in Notepad. Make sure to change the type to Unicode before saving though.

您可以通过在记事本中创建自己的desktop.ini文件夹来自定义文件夹。 不过,在保存之前,请确保将类型更改为Unicode。

翻译自: https://www.howtogeek.com/96410/what-are-these-desktop.ini-files-i-keep-seeing/

desktop.ini

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值