Notepad Starts With "[.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\System32\Shell32.dll,-21787" When You Start Your Computer

Support for Windows XP has ended

Microsoft ended support for Windows XP on April 8, 2014. This change has affected your software updates and security options. Learn what this means for you and how to stay protected.

Symptoms
When you start the computer, Notepad starts and one or more text documents that contain the following lines appears on the Windows desktop:
[.ShellClassInfo]LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787
Cause
This behavior may occur if the following conditions are true:
  • A Desktop.ini file exists in one or more of the following folders, where drive is the drive on which Windows is installed:
    • drive:\Documents and Settings\All Users\Start Menu\Programs\Startup
    • drive:\Documents and Settings\All Users\Start Menu\Programs
    • drive:\Documents and Settings\All Users\Start Menu
    -and-
  • The Desktop.ini file contains the following lines:
    [.ShellClassInfo]LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787
Resolution

Method 1: Delete the Desktop.ini File

  1. Start Windows Explorer.
  2. On the Tools menu, click Folder Options, and then click the View tab.
  3. In the Advanced settings box, click to clear the Hide extensions for known file types check box and the Hide protected operating system files check box (if they are not already cleared), and then click OK.
  4. Delete any occurrences of the Desktop.ini file that contains the lines described earlier in the "Symptoms" section of this article. To do so:
    1. Locate each of the following folders, right-click the Desktop.ini file (if the file exists in that folder), and then click Open:
      • drive:\Documents and Settings\All Users\Start Menu\Programs\Startup
      • drive:\Documents and Settings\All Users\Start Menu\Programs
      • drive:\Documents and Settings\All Users\Start Menu
      where drive is the drive on which Windows is installed.
    2. Verify that the file contains the following lines:
      [.ShellClassInfo]LocalizedResourceName=@%SystemRoot%\system32\shell32.dll,-21787
      If the file contains these lines, right-click the file, click Delete, and then click Yes when you are prompted to confirm the deletion.
  5. Restart your computer and verify that the issue is resolved.

Method 2: Use the System Configuration Utility (Msconfig.exe) to Disable the Startup Item

  1. Click Start, and then click Run.
  2. In the Open box, type msconfig, and then click OK.
  3. Click the Startup tab.
  4. Click to clear the check box beside any desktop entries in the Startup Item column that are listed as Common Startup in the Location column, and are also located in any of the following locations (as indicated in the Command column):
    • drive:\Documents and Settings\All Users\Start Menu\Programs\Startup
    • drive:\Documents and Settings\All Users\Start Menu\Programs
    • drive:\Documents and Settings\All Users\Start Menu
  5. Click OK to quit the System Configuration Utility.
  6. Restart your computer and verify that the issue is resolved.

More information
For more information about how to troubleshoot by using the System Configuration Utility in Windows XP, click the following article number to view the article in the Microsoft Knowledge Base:
310560 How to troubleshoot configuration errors by using the System Configuration utility in Windows XP
Properties

Article ID: 330132 - Last Review: 08/05/2016 07:33:00 - Revision: 5.0

Microsoft Windows XP Home Edition, Microsoft Windows XP Professional

  • kbprb KB330132
Feedback