Questions tagged [desktop.ini]

Anything related to the `Desktop.ini` file used on Microsoft Windows OSes to customize some aspects of the folder where they are placed.

Anything related to the Desktop.ini file used on Microsoft Windows OSes to customize some aspects of the folder where they are placed.

File system folders are commonly displayed with a standard icon and set of properties, which specify, for instance, whether the folder is shared. You can customize the appearance and behavior of an individual folder by creating a Desktop.ini file for that folder.

http://msdn.microsoft.com/en-us/library/cc144102%28v=vs.85%29.aspx

39 questions
9
votes
3 answers

How can I immediately reload a folder icon when desktop.ini is changed

I've been trying to change folder icon programmatically using changing desktop.ini on the folder. I was able to set an icon, but couldn't change it immediately through changing "IconIndex". The icon was also changed in a few seconds later. Is there…
Kyokook Hwang
  • 2,682
  • 21
  • 36
4
votes
1 answer

Automate displaying Attributes column in Windows File Manager

I am trying to automate displaying the Attributes column in Windows File manager in the Details view. This column should be displayed for a specific folder only (not for all folders in the system). As far as I know, this could be made via a…
Coder
  • 220
  • 2
  • 10
4
votes
1 answer

Can I stop desktop.ini file creation by OS in windows 7?

I want to stop creation of desktop.ini file by OS whenever a new user I create in Win7.
basiajoker
  • 95
  • 2
  • 12
3
votes
1 answer

Win 10: Desktop.ini infotip/tooltip text formatting - line break

I'm trying to customize some folders in Windows 10 os using Desktop.ini text files. One thing I can't solve is how to make a line break in the infotip. Current text file looks like…
Zeds Zen
  • 123
  • 2
  • 8
3
votes
2 answers

os.listdir() showing file actually not in the folder on Python and Windows

The following Python script: import os print os.listdir('D:\images') is outputing the names of all the folders in the D:\image directory, but it is also showing desktop.ini in the same folder, while there is no such file in the image directory. Its…
Nancy
  • 315
  • 1
  • 5
  • 16
3
votes
1 answer

Wscript to batch edit desktop.ini for multiple folders

I'm looking to create a batch windows script file to define the icon location of a folder, in the folders desktop.ini Basically, I have over 400 videos in my media drive. Each has a icon file in it with the same name as the folder for…
Dij0o
  • 31
  • 6
3
votes
1 answer

How to customize a folder's icon via Python?

As this SU answer notes, in order to change a folder's icon, one has to change a folder's attribute to read-only or system, and have its desktop.ini contain something like [.ShellClassInfo] IconResource=somePath.dll,0 While it would be…
Tobias Kienzler
  • 25,759
  • 22
  • 127
  • 221
2
votes
0 answers

Desktop.ini files breaking node_modules

I have a create-react-app project that works well. However, if I let it sit for a couple days—without making any changes—it always breaks, with the error package.json » eslint-config-react-app/jest#overrides[0]: Environment key "jest/globals" is…
Victor Odouard
  • 1,345
  • 3
  • 15
  • 28
2
votes
0 answers

problem changing folder icons using desktop.ini

so i want to change desktop.ini to use custom folder icons with open("desktop.ini", "a") as f: f.write("[.ShellClassInfo]"+"\n") f.write("IconResource="+logo+",0") os.system("attrib +h +s desktop.ini") the desktop.ini file gets…
humantrash
  • 63
  • 6
2
votes
0 answers

'desktop.ini' prevents git garbage collector to repack

I imagine that it is not a good practice to have your git repositories on a Google Drive mounted on Windows system because the infamous desktop.ini file will popup everywhere (here's a post of 2015). When a team member tries to run the garbage…
rellampec
  • 698
  • 6
  • 22
2
votes
1 answer

Apply Folder Icon Change

I am attempting to change the icon of a folder. The code below does all what I found online says to do but the icon never changes. Am I maybe not "Applying" the change? string createdFile = Path.Combine(@"C:\Users\np\Desktop\PUTEST",…
user4410592
2
votes
3 answers

How to Get/Set Folder Type in C#

Windows defines five folder types (general items, documents, pictures, music, and video). In Windows Explorer you can get/set the type by right-clicking on the folder and selecting Properties->Customize->Optimize this folder for. I'm looking for a…
user764397
1
vote
1 answer

Is there a way to only update one folder's desktop.ini?

I am making a project involving the icons of the folders on my windows desktop. When I change the icon with python, the change doesn't occur immediately. You have to refresh it somehow (for example restart your laptop). And to counter this I…
Progrix
  • 36
  • 5
1
vote
1 answer

For the use of the LocalizedResourceName property

I wish to customize my own folder style, I tried to make the folder get remarks by modifying the LocalizedResourceName property in desktop.ini. I try to set LocalizedResourceName to a Chinese string. But it is displayed as garbled characters when it…
CaulCaul
  • 13
  • 3
1
vote
1 answer

Update folder icon with desktop.ini & instantly change (C++)

After reading a lot and trying for 2 days in a row, I managed to make something work by following this Microsoft tutorial on folder icons, but it's not perfect - changes don't take place immediately. I need to restart explorer / reboot my computer…
Elron
  • 1,235
  • 1
  • 13
  • 26
1
2 3