File Explorer

I use my pc only for music. I have changed the music folder template to suit my needs. Lately when I create a new subfolder WITHIN my music folder, explorer automatically selects the general items template. I do not want that. I want it to automatically select my customized music template. (Even better, I would like like my customized music template to be used everywhere. I will change it to another template if/when required.) How can I get file explorer to autoselect the music template instead of another template. (Please note, I have done the Properties, View, Apply to All Folders thing. Also the Properties, View, Customize, Select Folder Type, etc. Do not simply advise me to do that. I have done it already and the problem persists.)

VM EDIT: I have moved this to Music

Hi

Welcome to the Microsoft community.

From your description, you want to apply all folder settings to your music template. I may not know as well as you, but I found two relevant links for you. You can check whether it has any inspiration for you.

How to Customize Folders with Desktop.ini - Win32 apps | Microsoft Docs

PathMakeSystemFolderA function (shlwapi.h) - Win32 apps | Microsoft Docs

You are welcome to reply to this topic, and I sincerely thank you for your support of Microsoft products and services.

Best regards

Derrick Qian | Microsoft Community Support Specialist

----------------------

* If your problem is not solved, you could reply to the post again and we would continue to provide technical support for you.

* Please check and vote this answer if it helps as it will be beneficial to more community members reading here.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thank you for your reply. I have a look at those 2 links. Thank you. Here is the problem: I am not computer literate enough to figure out your possible solution. (In this particular case very few ordinary users would be.) I get around with extremely basic knowledge. Unfortunately my problem still remains.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi

Thanks for your reply.

If you don't understand these two documents very well, I can give you two examples. You can refer to the following two methods. You can choose one of them to try. You can also refer to this link.

1. Manual: 

First create a Desktop.ini file in the folder that needs to be changed, for example:

[.ShellClassInfo]

ConfirmFileOp=0

InfoTip=my folder

IconIndex=0

IconFile=MyFolder.ico

explain:

parameter ConfirmFileOp set 0--Prevents the "You are deleting the system directory" warning that pops up when users move or delete this folder.

parameter IconFile Specify the location of the icon file to be changed, which can be an Icon, Bmp, exe or dll file. The icon file in the above example is also placed in the same directory.

parameter IconIndex You can specify the index of the file. If the icon file is an Icon file, IconIndex is set to 0.

parameter InfoTip Used to set the Tooltip of this Folder in Windows.

Next step open CMD (Command Prompt) and enter:

attrib +s i:\MyFolder

i:\MyFolder It refers to the path of the directory where I want to change the icon. This action makes your folder a system folder.

2. programmatically:

Need VBA

Only two API functions are needed, one is used to manipulate the creation of Ini files, and the other is equivalent to attrib +s in the manual mode.

Option Explicit

Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long

Private Declare Function PathMakeSystemFolder Lib "shlwapi.dll" Alias "PathMakeSystemFolderA" (ByVal pszPath As String) As Long

Private Sub Form_Load()

 'The following steps are used to create the Desktop.ini file

 'If the ini file does not exist, it will create the ini by itself

 WritePrivateProfileString ".ShellClassInfo", "ConfirmFileOp", "0", App.Path & "\desktop.ini"

 WritePrivateProfileString ".ShellClassInfo", "InfoTip", "my folder changed because of this", App.Path & "\desktop.ini"

 WritePrivateProfileString ".ShellClassInfo", "IconIndex", "0", App.Path & "\desktop.ini"

 WritePrivateProfileString ".ShellClassInfo", "IconFile", "MyFolder.ico", App.Path & "\desktop.ini"

Best regards

Derrick Qian | Microsoft Community Support Specialist

-----------------------

* Beware of scammers posting fake support numbers here.

* Please check and vote this answer if it helps as it will be beneficial to more community members reading here.

1 person found this reply helpful

·

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi Derrick. Thanks for your reply and thank you VERY much for the effort you made to try and help me. It takes time and patience to provide the information you have provided. Thank You. What advanced technical people like you do not understand, is that there are millions of people, like me, who do not have a clue what you are talking about. For example:

"1. Manual: 

First create a Desktop.ini file in the folder that needs to be changed, for example:

[.ShellClassInfo]

ConfirmFileOp=0

InfoTip=my folder

IconIndex=0

IconFile=MyFolder.ico

explain:

parameter ConfirmFileOp s........................"

No-one out there, unless they are computer technically trained, knows what this means. Create Desktop.ini: What programme is used to do this? Notepad perhaps? It doesn't say, so I don't know. Does "MyFolder" refer to the folder I'm in? I have too many questions.

Why do I have to go through this agony to get my folders to behave the way it should? Should someone (microsoft) not provide a program/update to rectify their software (for which a hefty price is paid in the first place)? I have seen desktop.ini files on my previous pc. I am using Win 11 now. Does Win 11 not automatically create these files?

Thanks anyway Derrick. At least you tried to help a layman like me.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Hi

Thanks for your reply.

It is mainly to create a new folder in the folder you need to modify, and then change its suffix to ini to generate a configuration file, so as to configure this folder to meet your requirements. This file means to define that folder.

Feel free to post back if you need more assistance.

Best regards

Derrick Qian | Microsoft Community Support Specialist

-----------------------

* Beware of scammers posting fake support numbers here.

* Please check and vote this answer if it helps as it will be beneficial to more community members reading here.

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

 
 

Question Info


Last updated December 27, 2022 Views 62 Applies to: