Customizing Folders with Desktop.ini

通过创建Desktop.ini文件可以自定义Windows CE中文件夹的显示名称及图标等属性。此方法仅涉及 [.ShellClassInfo] 部分,用于指定文件夹在文件资源管理器中的名称。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Platform Builder for Microsoft Windows CE 5.0
Customizing Folders with Desktop.ini
Send Feedback

File system folders are commonly displayed with a standard icon and have a set of properties that describe the folder, such as whether or not the folder is shared. You can customize the appearance and behavior of an individual folder by creating a Desktop.ini file for the folder.

A Desktop.ini file is a text file that allows you to specify how a file system folder will be viewed. It is similar in structure to the Desktop.ini files found on Windows-based desktop systems, but Windows CE only supports the [.ShellClassInfo] section.

The [.ShellClassInfo] section allows you to customize the folder's view by assigning values to the entries shown in the following table.

EntryValue
ConfirmFileOpNot supported.
IconFileNot supported.
IconIndexNot supported.
InfoTip   Not supported.
LocalizedResourceNameSpecifies a resource module and the string ID to use as the name of the folder to display when viewed using the File Explorer or the Shell.

Use the following syntax to specify values for LocalizedResourceName:

LocalizedResourceName=dllname,stringID
NoSharingNot supported.

You can use Desktop.ini to localize or rename directories in your files system. To do this, place a Desktop.ini file in the directory that you want to rename. Before the shell displays the name of a directory, the shell looks for a Desktop.ini file. If it finds one, it displays a redirected name obtained from LocalizedReourceName to the end user. The following code shows and example of a Desktop.ini file.

[.ShellClassInfo]
LocalizedResourceName=@/Window/ceshell.dll,-20483
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值