简体   繁体   English

Windows 10的“开始”菜单是否支持带有自定义图标的文件夹?

[英]Does windows 10 Start menu support folders with custom icon?

I have my c# application where i create desktop.ini inside each folder to assign a custom icon to my folder. 我有我的C#应用​​程序,在其中每个文件夹内创建desktop.ini,以向其文件夹分配自定义图标。 It works fine in windows 7.But in windows 10,it does not work.If I go to start menu path(C:\\Users\\user1\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs),there I am able to see the folder with custom icon,but in start menu view the folder always comes with default folder icon. 在Windows 7中可以正常工作,但是在Windows 10中则无法工作。如果我转到开始菜单路径(C:\\ Users \\ user1 \\ AppData \\ Roaming \\ Microsoft \\ Windows \\ Start Menu \\ Programs),我可以可以看到带有自定义图标的文件夹,但是在开始菜单视图中,该文件夹始终带有默认文件夹图标。

Folder "123" at the start menu path comes with the custom icon 开始菜单路径中的文件夹“ 123”带有自定义图标

在此处输入图片说明

Folder "123 at start menu comes with default folder icon" 文件夹“开始菜单中的123带有默认文件夹图标”

在此处输入图片说明

Please suggest if there is any way to do this. 请建议是否有任何方法可以做到这一点。

You could assign a folder.jpg to the custom folder and set its attributes to system and hidden. 您可以将folder.jpg分配给自定义文件夹,并将其属性设置为system和hidden。

You can also create a shortcut to the folder and assign a custom icon to that. 您也可以为该文件夹创建一个快捷方式,并为其指定一个自定义图标。

I know the second option works with the windows UI. 我知道第二个选项适用于Windows UI。

Right-Click -New -Shortcut -Enter Folder Address -Enter Name -Save 右键单击-新建-快捷方式-输入文件夹地址-输入名称-保存

Then Right-Click the Shortcut -Properties -Change Icon -Choose Icon and Save 然后右键单击快捷方式-属性-更改图标-选择图标并保存

Then Right-Click Shortcut -Add to start 然后右键单击快捷方式-添加以开始

So theoretically you should be able to create the folder, create a shortcut and assign the icon to that using the .ini file or you can at least take a look at what is different in comparing your application output and a shortcut made through the UI. 因此,从理论上讲,您应该能够使用.ini文件创建文件夹,创建快捷方式并将图标分配给该文件夹,或者至少可以查看比较应用程序输出和通过UI生成的快捷方式的不同之处。 The start menu may have its own .ini file as well. 开始菜单也可能有其自己的.ini文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM