{"id":1543,"date":"2007-03-20T11:45:03","date_gmt":"2007-03-20T06:15:03","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=1543"},"modified":"2023-06-27T20:15:52","modified_gmt":"2023-06-27T14:45:52","slug":"desktop-ini-automatically-opens-at-startup","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/desktop-ini-automatically-opens-at-startup\/","title":{"rendered":"Desktop.ini file automatically opens when you start Windows"},"content":{"rendered":"<p>When you start your computer, the desktop.ini file may automatically open in Notepad. It may have the following contents:<\/p>\n<pre>[.ShellClassInfo]\r\nLocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21787<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-56659\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/03\/desktop-ini-opens-startup.png\" alt=\"desktop.ini opens at login\" width=\"680\" height=\"191\" \/><\/p>\n<p>Desktop.ini is a configuration file which can be used to customize <a href=\"https:\/\/www.winhelponline.com\/blog\/shell-folders-are-displayed-with-the-standard-folder-icon-in-windows\/\">folder icons<\/a>, <a href=\"https:\/\/www.winhelponline.com\/blog\/shell-folder-wrong-name\/\">caption<\/a>, etc., on a per-folder basis.<\/p>\n<p>The <code>desktop.ini<\/code> file (in your the <code>Startup<\/code> folder)\u00a0 may open at startup if the hidden and system attributes for the file are missing.<\/p>\n<h2>Resolution<\/h2>\n<p>To prevent desktop.ini from opening at startup, follow these steps:<\/p>\n<p>Enable the hidden attribute for desktop.ini in your <code>Startup<\/code> and <code>Common Startup<\/code> folders to resolve the issue. To do so, you can use the Command Prompt.<\/p>\n<p>Open an <a href=\"https:\/\/www.winhelponline.com\/blog\/how-to-open-an-elevated-command-prompt-windows-vista\/\" target=\"_blank\" rel=\"noopener noreferrer\">elevated Command Prompt<\/a> window and run these two commands:<\/p>\n<pre class=\"cmd\">attrib +s +h \"%appdata%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\desktop.ini\"<\/pre>\n<pre class=\"cmd\">attrib +s +h \"%programdata%\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\desktop.ini\"<\/pre>\n<p>That&#8217;s it!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you start your computer, the desktop.ini file may automatically open in Notepad. It may have the following contents: [.ShellClassInfo] LocalizedResourceName=@%SystemRoot%\\system32\\shell32.dll,-21787 Desktop.ini is a configuration file which can be used to customize folder icons, caption, etc., on a per-folder basis. The desktop.ini file (in your the Startup folder)\u00a0 may open at startup if the hidden &#8230; <a title=\"Desktop.ini file automatically opens when you start Windows\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/desktop-ini-automatically-opens-at-startup\/\" aria-label=\"Read more about Desktop.ini file automatically opens when you start Windows\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[106],"class_list":["post-1543","post","type-post","status-publish","format-standard","hentry","category-windows","tag-command-prompt"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1523,"url":"https:\/\/www.winhelponline.com\/blog\/shell-folders-are-displayed-with-the-standard-folder-icon-in-windows\/","url_meta":{"origin":1543,"position":0},"title":"User Shell Folders Appear With Generic Yellow Icon in Windows","author":"Ramesh","date":"February 1, 2007","format":false,"excerpt":"When you open Explorer, the shell folders such as Documents, Videos, Music, or Pictures may be displayed with a standard folder icon rather than the special folder icons. This behavior can occur when the desktop.ini file in the shell folder is missing or incorrect, or the folder has lost its\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"user shell folders generic icon fix","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2007\/02\/fix-shell-folder-icons-gui-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":494,"url":"https:\/\/www.winhelponline.com\/blog\/dragging-folder-to-favorite-links-moves-the-folder-instead-of-creating-shortcut\/","url_meta":{"origin":1543,"position":1},"title":"Dragging a folder to Favorite Links moves the folder instead of creating Shortcut","author":"Ramesh","date":"August 25, 2008","format":false,"excerpt":"When you drag a folder to the Favorite Links area in Windows Explorer, the shortcut to the folder is placed in the Links folder. This was not the case in one of my Windows Vista systems, where the entire folder and sub-folders were moved to the Links folder when dragged\u2026","rel":"","context":"In &quot;Windows Vista&quot;","block_context":{"text":"Windows Vista","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-vista\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/vista-icon.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":50378,"url":"https:\/\/www.winhelponline.com\/blog\/shell-folder-wrong-name\/","url_meta":{"origin":1543,"position":2},"title":"Fix: Shell Folder Shows with an Incorrect Name","author":"Ramesh","date":"May 31, 2023","format":false,"excerpt":"After moving the user shell folders, such as Desktop, Download, Documents, Pictures, Music, or Videos, incorrectly, one of your shell folders may show up with a different name. For example, the \"Documents\" folder may show up as \"Downloads\", or \"Desktop\" may appear as \"Downloads\". However, the folder name may show\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"desktop shell folder renamed - localizedresourcename","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/desktop-name-changed-4.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/desktop-name-changed-4.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/desktop-name-changed-4.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/desktop-name-changed-4.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":27932,"url":"https:\/\/www.winhelponline.com\/blog\/customize-contacts-folder-icon-windows\/","url_meta":{"origin":1543,"position":3},"title":"How to Customize the Contacts Folder Icon in Windows","author":"Ramesh","date":"September 3, 2022","format":false,"excerpt":"The Contacts folder is a shell folder that can be relocated like any other shell folder like Documents, Music, Pictures, etc. However, unlike other shell folders, the Contacts folder doesn't have a \"Customize\" tab in the property sheet. You may be wondering how to change the Contacts folder icon. We'll\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"contacts folder - customize tab change icon missing","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/09\/contacts-folder-change-icon-missing.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":46152,"url":"https:\/\/www.winhelponline.com\/blog\/profile-folder-missing-under-users\/","url_meta":{"origin":1543,"position":4},"title":"User Profile Folder Missing Under C:\\Users","author":"Ramesh","date":"May 15, 2023","format":false,"excerpt":"The profile folder for each user account on your computer is stored under C:\\Users. On some systems, the user profile folder may not appear when you open the \"C:\\Users\" folder in File Explorer. However, typing the command echo %userprofile% will tell that the profile folder is located at \"C:\\Users\\{username}\". You\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"profile folder missing under c:\\users","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2023\/05\/user-profile-folder-hidden-missing.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":2547,"url":"https:\/\/www.winhelponline.com\/blog\/ie-history-bar-view-by-date-missing\/","url_meta":{"origin":1543,"position":5},"title":"[Solved] Internet Explorer History Bar &#8220;View By&#8221; Options Missing","author":"Ramesh","date":"March 31, 2016","format":false,"excerpt":"When you open the History Bar (CTRL + SHIFT + H) in Internet Explorer, the following \"View By\" options may be missing, listing only the \"Search History\" entry in the drop down box. View By Date View By Site View By Most Visited View By Order Visited Today This problem\u2026","rel":"","context":"In &quot;Internet Explorer&quot;","block_context":{"text":"Internet Explorer","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/internet-explorer\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/ie-history-desktop-ini-1.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=1543"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/1543\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=1543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=1543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=1543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}