A lot of people write batch scripts to optimize and customize their PC’s and the integrated features. For example, with the following tips you can hide desktop icons via command line and then put it all in a batch script
Using The Command Attrib
- Enter cd C:\Users\username\Desktop (replace username with your own actual username – if you are unsure browse to C:\Users\ and see if anything sounds familiar like your nick or something!)
- Enter attrib +r +a +h +s *
- +r (adde read-only)
- +a (add archive attrib)
- +h (add hidden attrib)
- +s (add system attrib)
Actually, you will only need to add the +h attribute, but while you’re at it you can also make them read-only, archive files and system files – this will make sure they don’t get deleted easily and you can always undo that by simply changing the + sign to a – sign – simple!
You can now put this into a .bat file and add it to your taskbar and then launch it whenever needed. Then you should make a 2nd batch script to unhide the files. This is a lot faster than clicking on Desktop – Uncheck Show Icons
Correct me if I’m wrong, but that will not work.
The only icons on my desktop are the Computer, Recycle Bin, Network, My Documents and Internet Exploerer.
I don’t want to see them, (rather, I want to hide and reveal them all with a single command) and they do not have a file representation to change attributes on. (they are desktop “namespace objects” in the Shell Namespace of COM)
There used to be a tweak for desktop eyecandy fans to turn of Windows Icons during “dashboard” style operation, so they didn’t interfere with the operation (or beauty) of dashboard style widgets.
This is really just change attribute of file not folder and icons.
if your folder options are set to view hidden files then this wont even work on desktop.
this is more scary is after u run this command the files that we use (.bat) wil also get hidden and its a turnaround work to go back and change folder options setting….
this is not gonna work
Shortest way to write vb script changing os registry