In Windows 7, I tried to move the C:\Windows\Fonts folder to another location. I did it because I didn't want to lose fonts, if I decided to install additional ones. At the default C:\Windows\Fonts location, they wouldn't survive reinstallation of the system. An alternative was to save copies of additional fonts at a different location and copy them to C:\Windows\Fonts after installing a new system.
I found no guidance on this process of moving the Fonts folder. I copied everything from the C: folder to the X: folder. Then I searched the registry, changed the references in my .reg file to the new location (X:\Cache\Fonts) in the two locations where I found references to C:\Windows\Fonts, and ran the reg file. The system rebooted without a problem. I tried to delete C:\Windows\Fonts, but that gave me a message:
Folder Access DeniedI searched on that and found advice to go into right-click Properties > Security tab > Advanced > Owner tab. There was no such tab for C:\Windows\Fonts, but there was for C:\Windows. I went to Edit, changed it to Administrator, and checked "Replace owner on subcontainers and objects." When I clicked Apply, I got another message:
You need permission to perform this action.
You require permission from TrustedInstaller to make changes to this folder.
Windows SecurityThe answer seemed obvious, and that made me suspicious. I searched on that and saw that Microsoft advised to just go ahead with this, in a couple of contexts, so I did. It took a while to change permissions for everything in C:\Windows. Next, I got a message telling me to close and reopen properties to see the updated situation, so I did that. Still looking at Properties for C:\Windows, I went into Security tab > Edit. I highlighted Administrators and then clicked Allow for Full Control. Now I got a message saying, "You need permission to perform this action" -- permission from Administator, which I was. I found other advice that seemed to recommend these two commands:
You do not have permission to read the contents of directory C:\Windows\CSC\v2.0.6. Do you want to replace the directory permissions with permissions granting you Full Control?
All permissions will be replaced if you press Yes.
takeown /f C:\Windows\FontsBut when I then tried to delete, I got another error message:
cacls C:\Windows\Fonts /G Administrator:F
Folder In UseNot surprising, since the system itself was obviously using fonts, though it would seem like it could have been just as happy using them from X: as from C:. I thought I had rebooted since making the registry change, so this time I booted into Safe Mode and tried the deletion there. No joy. I selected all fonts and tried deleting them individually, and that got me down to a selected core of 81 fonts, including essentials like Sylfaen Regular and Utsaah. I was tempted to boot into Ubuntu and wipe out the Fonts folder that way, but instead I gave up: I went to X:\Cache\Fonts and copied all of the fonts back to C:\Windows\Fonts. I couldn't remember exactly how many there had been, but the count didn't seem the same, so I rebooted into Normal mode to run System Restore. My hunch was correct: some fonts were not displaying correctly. After System Restore, all was lovely, so I moved on to the next part of my life.
The action can't be completed because the folder or a file in it is open in another program.
Close the folder or file and try again.