Normally there is a desktop.ini file on the desktop. This file is hidden!
You can see it when you turn on ‘Hidden items’ and turned of ‘Hide protected operating system files (Recommended)’.
But when you do this, and then DELETE this desktop.ini file, hmmm well let’s say DON’T.
Because now when you login a desktop.ini file opens in Notepad. And it will keep opening again and again and again. Until you fix this!
Fix is easy, just make sure the desktop.ini file is in the right directories, AND with the right file properties!
Here you can see the right file properties (being Hidden and System!)
So how do we create and set the right properties for this file?
It lives in several places, but my experience is that the file in the %appdata% folder of the User is missing or missing the right properties.
So start up a Elevated Command Prompt and start typing:
attrib +s +h “%appdata%\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini”
attrib +s +h “%appdata%\Microsoft\Windows\Start Menu\Programs\desktop.ini”
If that doesn’t work then there is the one in the %ProgramData% folder!
attrib +s +h “%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini”
But my best guess is the first one!
Happy login 🙂