Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I installed a new SSD as my boot drive (C:), installed a fresh version of Windows 7 64-bit, and kept my existing SATA drive in the system (D:).

I want to keep using my D: drive for file storage (no sense filling up the SSD with stuff that isn't performance critical) and I haven't formatted the D: drive because there's stuff on there I want to keep.

I also want to create a new "D:\Program Files" folder so I can install apps that aren't performance-critical there. So I decided I'd rename the existing "D:\Program Files" from my old Windows install to "D:\Old Program Files" and then create a new "D:\Program Files" directory. Easy, right?

I can see "D:\Program Files" just fine in Explorer. I right click, select Rename, and type "Old Program Files." I get the alert that says I need Admin permission to do this, so I press the confirm button with the shield. But the folder still appears as "Program Files" in Explorer.

I jump out to the command line, and it appears as "Old Program Files" when I do a dir. I can even do mkdir "Program Files" and when I do a dir they both appear. But in the Explorer GUI, it looks like I have two "Program Files" folders. This will be confusing during app installation because I won't be able to tell which one is which.

I've tried poking around in the properties tab of the old folder, but can't find anything that would explain what's causing the issue.

How do I rename the old Program Files folder?

share|improve this question
2  
Does it have a hidden file Desktop.ini inside? –  grawity Jun 8 '12 at 19:07

2 Answers 2

up vote 0 down vote accepted

Currently your old windows ID has all the permissions. You need to take ownership of the folder, and then give yourself permissions to that folder.

share|improve this answer
    
Thanks, but didn't work. I took ownership, but same issue occurs. –  SteveJ Jun 8 '12 at 21:15
    
once you have ownership, you then have to give yourself permissions to the folder –  Sean Cheshire Jun 9 '12 at 14:55
    
That worked. Thanks. :) –  SteveJ Jun 9 '12 at 23:02

Show hidden and "protected" system files and check if there is a desktop.ini in that program files folder. If yes, it may contain a "LocalizedResourceName" entry which can be used to change the display name of the folder depending on the currently active language pack (so that a German user will see "C:\Programme" and an English user will see "C:\Program Files" while still this is the same folder). Delete the desktop.ini file and maybe restart your Explorer process and the name should have changed.

Note that you can (ab)use this feature also to create 10 folders that appear the same name in Windows Explorer. Therefore, never trust the display name, instead go into the folder and click into the navigation bar to see the "real" name of the folder if anything looks suspicious.

edit: sorry for digging out this old question - no idea why it appeared on the front page...

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.