Windows 7: What is the Desktop.ini file and How Can I Remove It?

   Posted by David Kirk in Windows

Why do I see the desktop.ini file in every folder? How can I get rid of it? One of my neighbors called today asking me all of these questions. Let me explain the function and purpose of this ubiquitous mysterious file.


What is the Desktop.ini file?

This hidden file is placed in every folder to tell the operating system how to display and customize the viewing of that specific folder. For example, this allows a folder to have a custom icon. Microsoft has more boring info about customizing folders with this file.

desktop.ini example

Why did this file suddenly appear?

The file is typically set as both a hidden and system file. Most people start to notice the desktop.ini file after globally setting their system to show hidden system files and folders. Often it is most noticeable on the desktop. By resetting this setting to hide these files, the desktop.ini files will no longer be visible.

Can I just delete these files?

Deleting these files will just remove any customizations set by the desktop.ini file. Although it should not hurt your system, trying to delete these files can be frustrating as the Windows operating system may rebuild them.

 

About David Kirk

David Kirk is one of the original founders of tech-recipes and is currently serving as editor-in-chief. Not only has he been crafting tutorials for over ten years, but in his other life he also enjoys taking care of critically ill patients as an ICU physician.
View more articles by David Kirk

The Conversation

Follow the reactions below and share your own thoughts.

34 Responses to “Windows 7: What is the Desktop.ini file and How Can I Remove It?”

  1. June 29, 2010 at 5:18 am, Jiltedone said:

    Leave as is mate, that will be regenerated by win after a while or on start up, if you do delete it, you might loose something or the desktop will start acting funny.

    Reply

    • September 21, 2010 at 5:55 pm, joel said:

      go to folder options and click ” dont show hidden folders they will disappear’

      Reply

      • November 12, 2010 at 10:24 pm, Dshultz said:

        Nice job

        Reply

      • November 18, 2010 at 5:39 pm, Timchuks87 said:

        worked like a charm. Used t think it was a virus.Thanks

        Reply

        • May 12, 2011 at 8:28 pm, reza said:

          oh common! you really wanna say that you can’t distinguish between a system file and a virus!!!! usually viruses get back after hitting the refresh button or by double clicking on your drives, but not all off them let you see their beautiful content ;)

          Reply

      • November 23, 2010 at 4:56 pm, Terlisner said:

        thanks to joel

        Reply

      • February 07, 2011 at 5:09 am, Ariel Vergantinos Tapere said:

        tanks bro…it really works…good job…

        Reply

      • February 23, 2011 at 9:13 am, Rotan Benaia said:

        thanks…..nearly delete weird files which look funny in the content of every folders…lucky my sis advice to do some google search…pheeewww that was close!!! thanks again… :)

        Reply

      • March 29, 2011 at 8:01 pm, Yolanda K. said:

        Thank you…worked perfectly.

        Reply

    • January 21, 2011 at 9:40 pm, critters52 said:

      Yah , I deleted it on my computer an noticed the icon for my recycle bin was suddenly missing. foutunitly I was able to get it back via change desktop settings,but it could have been worse. If it’s bothering you, just highlight and move it to you doc folder.. out of sight out of mind.

      Reply

  2. November 10, 2010 at 5:43 pm, Soj said:

    1. Open the Windows Explorer
    2. Click on Organize and then on Folder and search options
    3. Go to the tab View and scroll down.
    4. Check the option Hide protected operating system files and click on Apply:

    This will just hide desktop.ini files.

    Reply

    • January 08, 2011 at 10:34 am, Sabih Star said:

      Thanks man, I did it and its disappear at once.

      Reply

    • January 29, 2011 at 10:49 pm, Andrew said:

      Step 1.a: Select Desktop.
      Other than that, thanks for the advice. Worked a treat.

      Reply

    • February 16, 2011 at 1:51 pm, Fbashyam said:

      Thank you and good wishse

      Reply

    • March 10, 2011 at 4:45 am, johnrobert said:

      thank you soj..

      Reply

    • March 19, 2011 at 11:05 pm, Barc777 said:

      I’d like to see the protected operating files, with the exception of desktop.ini. Is there any way to do that?

      Reply

      • March 19, 2011 at 11:11 pm, Barc777 said:

        Figured it out. Went to “Computer” in Windows Explorer, and unchecked “Hide”, clicked “Apply to all”, then went to my own profile’s desktop and checked “Hide”, but without clicking “Apply to all”. Worked like a champ!

        Reply

      • March 19, 2011 at 11:15 pm, Barc777 said:

        P. S. I don’t really care whether I see it in WinEx folders; just don’t like it on the desktop. (One of my co-workers likes such a clean desktop that she has NO shortcuts, while another one has them all the way across his… There’s nought s’ strange as folk!)

        Reply

  3. December 16, 2010 at 5:47 pm, Jtannercc33914 said:

    Thanks Soj, I had one desktop.ini icon on the desktop for over a year now (when I got my new computer with Win7). That was annoying enough, but a second popped up a few days ago so it was time to do something. Your solution worked like a charm.

    Reply

  4. December 18, 2010 at 2:40 pm, Jamilu said:

    Yeah it work for me.Thanks lol

    Reply

  5. December 21, 2010 at 12:14 pm, Idiotsrus said:

    Setting your folder to show hidden, and then setting it back to hidden is maybe the stupidest advice iv’e ever heard.
    Just accept its there. Microsoft dont hire the brightest lightbulbs, so youre kinda stuck with.

    Reply

  6. December 24, 2010 at 12:53 am, Aeitawinai said:

    Thnx Soj for lifting dis burden off my shoulders…You great..

    Reply

  7. December 29, 2010 at 12:47 am, Atorres2005 said:

    Great info, Thanks a lot

    Reply

  8. January 09, 2011 at 6:53 pm, Tom said:

    What if you have two desktop.ini files. I do and suspect that confuses the windows os.

    Reply

    • February 04, 2011 at 12:21 pm, Schmopinions said:

      You have 2 desktop.ini files showing because the icons on your desktop are actually from 2 different folders: C:UsersDesktop and C:UsersPublicDesktop. Check this by right clicking on an icon and selecting Porperties. Look for “Location:” in the window that comes up. This is because there are personal icons and applications for each user and icons and applications for all the users.

      Reply

  9. March 01, 2011 at 11:45 am, SlowEddie1 said:

    Thank you. After suspecting my virus software had let something nasty get into my system i was close to a format. The information i found here with a simple cure saved me many hours of trouble backing up files. Again many thanks.

    Reply

  10. March 05, 2011 at 5:53 am, man_ana said:

    Thank you. I’ve been wondering about this since forever. Thanks again!

    Reply

  11. March 30, 2011 at 11:48 am, Ali Cobra13 said:

    thank you !!! very good

    Reply

  12. May 10, 2011 at 8:12 am, Drprem said:

    what if i deleted this

    Reply

  13. August 03, 2011 at 7:13 pm, Jwarner said:

    Now how do you get rid of B845EF76.EXE

    Reply

  14. August 22, 2011 at 12:12 pm, cristiano said:

    ok well i just wanna thank joel his advice works its just help me to remove the desktop in my folders thanks again joel

    Reply

  15. January 27, 2012 at 8:10 am, la' vee said:

    thnks soj u such a genius..

    Reply

  16. February 08, 2012 at 9:19 am, nichin said:

    cool…. thanx a lot… i was worried that it was a virus.. spreading like hell… lol

    Reply

  17. May 09, 2012 at 2:32 am, ashish said:

    Thanks dude for this valuable info.

    Reply

Leave a Reply

You may also like-

Windows 7: How To Change a Library IconWindows 7 allows you to create your own Libraries, but changing the icon is not a straight forward process. The GUI doesn't allow for ...