≡ Menu

How to remove desktop.ini file from your Computer

troubleshoot remove desktop.ini file
Spread the love

A very common question on this topic is if desktop.ini is a virus or not? First of all, the desktop ini file is created automatically inside every folder. This is a hidden file. So if you choose not to show hidden files in your system settings, it won't show up. ( Another file similar to desktop ini is thumbs.db file)

Just like thumbs.db, desktop.ini files are created automatically inside your computer. These files are hidden by default. To see desktop.ini files, you need to enable “show hidden files” option under Folder options. It's natural to feel uncomfortable when you see the desktop.ini everywhere inside the computer. Even if you try to remove the file, it gets recreated once you close and re-open the folder.

What is desktop.ini?

Desktop.ini file carries information regarding a folder’s display settings. For e.g. information regarding the icon, the pop-up information that gets displayed when the mouse is moved over a file. It is even possible to edit the desktop.ini file and customize an individual folder. You can find desktop ini files in every folder inside your computer. The only way to reduce the number of these files is to reduce the number of folders inside your computer.

Usually, two desktop.ini files are created. One for the administrator account and the other for the local user account.

A quick check on my computer and there are over 627 desktop ini files on my computer. These files are usually small and don’t take much space. But at times, you can see a couple of files which is around 5 MB because the folder may have too many files and it needs to carry a lot of information.

So you may ignore it knowing that it is a harmless file. But if you think it is a nuisance and needs to be removed for saving precious hard disk space, try the steps below.

How to remove desktop.ini file?

There are free tools which can help in removing these files. But try the simple deletion using the command prompt.

  1. Press Windows Key + R for Run window, type cmd for opening command prompt
  2. del /s /ah desktop.ini

This command will quickly remove thumbs.db files from your computer.

How to prevent desktop.ini file from getting recreated?

Try the steps below to prevent the desktop.ini file from getting recreated

  1. Press Windows Key + R for Run window, type regedit. This will open the registry editor
  2. On the left side, navigate to HKEY_LOCAL_MACHINE -> SOFTWARE -> Microsoft -> Windows -> CurrentVersion -> Policies -> Explorer
  3. Right click on Explorer folder, click New, click DWORD
    registry settings for removing desktop.ini
  4. Rename the new DWORD to UseDesktopIniCache
    create dword registry remove desktop.ini file-registry-settings
  5. Double click and set the value to 0
    registry new dword value remove desktop.ini file

Use the comment section for any queries or feedback.

{ 24 comments… add one }
  • Majid

    THANK YOU SO MUCH .
    how to remove desktop.ini file from external hard drive

    • Anup Raman

      change the drive letter to the external drive in the command prompt.

      For e.g, the default drive letter in the command prompt is C:
      If E is the drive letter for the external drive, type E:
      Hit Enter
      Then use the command del /s /ah desktop.ini

  • jk

    Great useful advise to delete those files

  • Lina

    thank you so much. im so relieved they are gone for good

  • John

    Thanks Mate.

    It work for me.

    Cheers

  • James

    > del /s /ah desktop.ini

    > This command will quickly remove thumbs.db files from your computer.

    Copy paste error there. Should be removes desktop.ini files from your computer.

  • Abusalma Fahad

    Thanks very much. it worked. keep the good work

  • Shantanu

    very helpful man!thanx a lot!

  • Aem Rivera

    Thanks a lot!

  • Faridiel

    Thanks buddy! Clear!

  • Dessa Mae Martinez

    Thanks a lot!
    It actually works perfectly!
    Very brief and precise instructions with visual supports.
    Keep it up!
    Two thumbs up!

  • Bjarne Bak

    Seen this trick earlier on and have used it several times. It actually works … for a while, but since M$ is doing so many updates on Win10 the effect only last until next update. That’s what I have experienced anyway. But I have a question for you. You write ‘Rename the new DWORD to DesktopIniCache’, but your screen shot shows differently. Which is it?
    Cheers
    Bjarne

    • My sincere apologies for making the mistake. A big thanks for pointing it out, considering how an incorrect entry in registry can make the computer crash or behave abnormally.

      I have corrected the entry as “UseDesktopIniCache”. Thanks again.

      • Bjarne Bak

        Hi Anup
        Thanx for a swift reply. Thumbs up.
        Cheers
        Bjarne

  • vivek

    does this work for windows 10 64 bit also

  • Terry Havard II

    THANK YOU SO MUCH!!!!!!!!!!!!!!!!!!

  • Gilbert

    Great job!!!! Removed the .ini thingie that was such a menace….. ? kudos!!!

  • Eunice

    Very helpful! Thank you so much!

  • Charlie Gee

    Thank you for sharing your knowledge it has worked a treat. Good luck to you.

  • Rizwanahamed C A

    Thanks.. It is very helpful. Thanks again.

  • reza

    it is really effective………..

  • Aravinda

    Thank you very much for sharing the knowledge. It was very useful and worked well. Wish you all success in IT.

  • jorge morales

    it was awesome!…my pc reborn. tkns.

Leave a Comment