Avatar
Please consider registering
guest
sp_LogInOut Log Insp_Registration Register
Register | Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
sp_Feed Topic RSSsp_TopicIcon
*.ini files opening in text boxes at boot up.
Avatar
Esarhaddon
Denver, CO
Member
Members
January 16, 2021 - 5:12 pm
Member Since: October 27, 2020
Forum Posts: 6
sp_UserOfflineSmall Offline

After a recent install, I was getting two notepad windows opening the desktop.ini files at EVERY bootup. this was not a real problem but even the primary and advanced team at M$ had no idea or had forgotten what .ini files were. I had to explain to them that they were basically instruction sets for about every windows process there is and they are scattered throughout your computer. They claimed they had never seen them as an icon on their desktop. I was having fits getting them both off my screen and to quit opening them as txt windows at bootup. After about an hour they reminded me of something so simple and something I have not used in years. The old DOS attrib (attribute) command. It was so simple that I thought I would drop it here as a reminder to others.

In an opened cmd window just type in: attrib, then either + or -, and what you want it to do, and then the file location and name.

In my case it would look like this:

attrib +s +h C:\Users\Charlie\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\desktop.ini

THe +s is to make it a system file and +h to make it hidden. this hid the desktop icon and the system understood it was for system use only and not to display it as a .txt file.

An added benefit this somehow fixed another problem I was having. I did not have the desktop folder on my directory tree. fixing the above problem put the desktop folder back into the directory tree where it belonged.
For complete instructions on the attrib command look here:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/attrib

and: https://www.computerhope.com/attribhl.htm#:~:text=The%20attrib%20command%20allows%20an%20MS-DOS%20and%20Windows,make%20a%20file%20hidden%20using%20the%20attrib%20command.

Avatar
Richard Pedersen
Admin
January 16, 2021 - 5:17 pm
Member Since: July 31, 2012
Forum Posts: 210
sp_UserOfflineSmall Offline

Thanks for the great tip!

Forum Timezone: America/Indiana/Indianapolis
Most Users Ever Online: 2303
Currently Online:
Guest(s) 190
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Chad Johnson: 867
Mindblower: 677
carbonterry2: 356
Flying Dutchman: 278
grr: 211
Member Stats:
Guest Posters: 11
Members: 3229
Moderators: 7
Admins: 3
Forum Stats:
Groups: 8
Forums: 20
Topics: 1954
Posts: 13563
Newest Members:
instaproapk, mousetesteronline, keshamatt, Patriciabin, MattOwens
Moderators: Carol Bratt: 67, dandl: 740, Jason Shuffield: 1, Jim Canfield: 8, Terry Hollett: 0, Stuart Berg: 0, John Durso: 0
Administrators: Jim Hillier: 2709, Richard Pedersen: 210, David Hartsock: 1117
Scroll to Top

WHY NOT SUBSCRIBE TO OUR NEWSLETTER?

Get great content like this delivered to your inbox!

It's free, convenient, and delivered right to your inbox! We do not spam and we will not share your address. Period!