A frighteningly useful Vista command line
One of the annoying things about Windows Vista (and there are plenty) is that every now and then I’ll run into a file that doesn’t want to to be deleted. Vista tells me I need permission to do that. As I am a god on my computer — all right, an Administrator — I shouldn’t have to deal with that.
It really got annoying when I wanted to delete a bunch of Vista fonts that were absolutely useless. Nyala? BatangChe? SimSun?
Some went to their deaths quietly, but others stubbornly refused to be taken out.
Finally, I found the answer with a neat Vista command line that basically turns those font files (or, really, any files) into my willing slaves, willing to throw themselves to their deaths on my command.
I simply ran the following commands, one after the other (as Administrator):
takeown /f c:\windows\fonts /r /d y
icacls c:\windows\fonts /grant administrators:F /t
After each one, a command-line dialog box opened, many things scrolled by, and then all was quiet. And when I went back to the fonts directory I was able to delete to my heart’s content.
I am writing this just in case someone searches on “removing Vista fonts.” In fact, those commands work for any Vista file or folder; just replace “c:\windows\fonts” with whatever you wanna take control of.
That is all.











lexington says:
I feel even better about Linux now.