Notepad Opens Desktop.ini On Windows Startup? Here Is The Fix!

Despite of being immensly popular, the Windows platform sure has its fair share of annoyances.

Have you ever got a Notepad named desktop.ini with

'[.ShellClassInfo] LocalizedResourceName=@%SystemRoot%/System32/Shell32.dll,-21787'

as soon as you start your computer? Do you know what is it? Why did it happen? I have been dealing with this issue since last week and trust me it irritated me to the core. Well, if you have faced the same thing, then you can understand the feeling.

To answer all your questions and to know how to get rid of this irritating notepad popping up at your screen every time you turn on your PC, read on!

Well, this behavior could be due to a few things such as:

Desktop.ini file exists in one or more folders, usually installed in a drive with Windows on it, you can locate these folders:

  • drive:->Documents and Settings->All Users->Start Menu->Programs
  • drive:->Documents and Settings->All Users->Start Menu->Programs->Startup
  • drive:->Documents and Settings->All Users->Start Menu

Once you locate the Desktop.ini file, open it in Notepad

You will see [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787. So, now you know why you get that weird Notepad thing opening at the screen. Now, let’s know how to get rid of it.
Notepad - desktop.ini

Locate & Delete Desktop.ini File

To locate desktop.ini file in your computer and delete it, follow these steps:

  1.  Press Windows and E to get Windows Explorer.
  2. Click View tab and then click Options->Change folders & Search Options.
    Notepad - desktop.ini 2
  3.  You will get Folder Options->View tab
  4.  Under Advanced Settings, locate Hide extensions for known file types & Hide protected operating system files. Remove the checkmark beside both the options, then click Apply and OK to make the changes.
    Notepad - desktop.ini 3
  5.  Locate all the files named Desktop.ini which have the same statement earlier in the document, to locate follow these steps:
  • drive:->Documents and Settings->All Users->Start Menu->Programs
  • drive:->Documents and Settings->All Users->Start Menu->Programs->Startup
  • drive:->Documents and Settings->All Users->Start Menu

Once located, check whether the files contain “[.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787”

If these files contain the lines, right-click on the file, then click Delete to remove all of them. Click Yes to confirm the action. If you have deleted all the desktop.ini files, then restart your computer. Once your system comes up, check for the notepad with weird lines.

Author’s Tip: You must have a protection tool on your computer, so that anytime anything fishy surfaces, you can get notified. One of the best security solution Advanced System Protector can handle all the bad stuff for you. It keeps an eye on your PC, detects and deletes if any threat found, keeping you safe always.

Method 2: Steps to Disable the Startup Items

To disable Startup items, follow these steps:

  1.  Press Windows and R to get the Run window.
  2.  Type msconfig and click OK to open.
    Notepad - desktop.ini 4
  3. Click the Startup tab & click Open in Task Manager.
  4.  Now, check for any desktop entries in Startup items under Common Startup in the Location column, and if Yes, then look for the following location-
  • drive:->Documents and Settings->All Users->Start Menu->Programs
  • drive:->Documents and Settings->All Users->Start Menu->Programs->Startup
  • drive:->Documents and Settings->All Users->Start Menu

Restart your computer to confirm the problem is solved.  So, in this way, the issue of a notepad named desktop.ini file saying

“[.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787” coming up is resolved. Try these methods, and let us know which worked for you in the comments section below. For more tech updates, keep visiting out website  WeTheGeek.

4 COMMENTS

  • comment_avtar
    Rachel Humphrey
    I have no idea what you mean when you say to search for it and you put the drive: documents and settings all user astart menu and programd… what do you mean when you say drive..? how do you find documents and settings and all that…

    5 years ago
  • comment_avtar
    Greg Nelson
    I had the same problem after ghosting my old hard drive to new one. Now using new HD.. I still had to get rid of Desktop.ini file, but the source of the file and final fix for my system was to change the “Windows Security Settings” to ‘uncheck’ “Notifications”..”get informational notifications”..”Threats found, but no immediate action needed.” –Uncheck –>box

    4 years ago
  • comment_avtar
    Sir Sebata Omontle
    The first method worked though I discovered that my laptop had 11 desktop.ini dlls

    3 years ago
    • comment_avtar
      Mridula Nimawat
      Glad it worked for you.

      3 years ago

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe Now & Never Miss The Latest Tech Updates!

Enter your e-mail address and click the Subscribe button to receive great content and coupon codes for amazing discounts.

Don't Miss Out. Complete the subscription Now.