Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


May 2003

Renaming Special Folders

Change the name of My Computer and other special folders
RSS
Subscribe to Windows IT Pro | See More Registry Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

This month, I show you how to modify the registry to rename My Computer and nine other special Windows folders. All the subkeys you change are in the HKEY_CLASSES_ROOT\CLSID key. Before I list the particular subkeys to edit, I explain the general procedures for three combinations of OS level and Microsoft Internet Explorer (IE) version. Remember: Improperly performed registry changes can be hazardous to your system.

The general procedure for a Windows 2000 system that runs IE 5.0 is to start regedt32, then locate the subkey for the folder you want to rename. You'll modify either the LocalizedString value or the (Default) value. LocalizedString values will look like @C:\WINNT\system32\shell32.dll,-9216@1033,folder name, where folder name is the name of the folder you want to change (e.g., My Computer). Copy the original LocalizedString value to the clipboard, then delete the value in the subkey. Recreate the LocalizedString value as a value of type REG_EXPAND_SZ, paste the old value into the new key, and edit the folder name string to reflect the new name you want the folder to have. The REG_EXPAND_SZ data type lets you use environment variables to customize the folder name. For example, you can replace My Computer with the string %USERNAME% on %COMPUTERNAME%. For registry entries that use the (Default) value, the value will simply be the current folder name (e.g., My Computer). Use regedt32 to add a new value of type REG_EXPAND_SZ. Leave the value name blank and type the folder's new name in the Value Data field.

On a Windows XP system, start regedt32, open the subkey, then locate the LocalizedString value, which should be of type REG_EXPAND_SZ. The value will look like @%SYSTEMROOT%\system32\SHELL32.dll,-nnnn, where -nnnn is a system-assigned number that represents the particular folder name. Replace the -nnnn string with your new value, using environment variables to customize the content.

On Win2K computers that run IE 6.0, start regedt32 and open the appropriate subkey. Registry entries that use a LocalizedString value will look like @C:\WINNT\system32\shell32.dll, 9216@1033,folder name. Delete the LocalizedString value and recreate it as type REG_EXPAND_SZ. Then, replace the folder name string with a new folder name that uses environment variables. For registry entries that use the (Default) value, the value will be a string that corresponds to the folder's current name. Add a new value of type REG_EXPAND_SZ, leave the value name blank, and type the new folder name in the Value Data field.

10. My Documents—Both XP and Win2K use the LocalizedString value in HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}.

9. Recycle Bin—Both XP and Win2K use the LocalizedString value in HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}.

8. Fonts—XP uses the LocalizedString value and Win2K uses the (Default) value in HKEY_CLASSES_ROOT\CLSID\{D20EA4E1-3957-11d2-A40B-0C5020524152}.

7. Search Results—XP uses the LocalizedString value and Win2K uses the (Default) value in HKEY_CLASSES_ROOT\CLSID\{1f4de370-d627-11d1-ba4f-00a0c91eedba}.

6. Scheduled Tasks—XP uses the LocalizedString value and Win2K uses the (Default) value in HKEY_CLASSES_ROOT\CLSID\{ D6277990-4C6A-11CF-8D87-00AA0060F5BF}.

5. Internet Explorer—XP uses the LocalizedString value and Win2K uses the (Default) value in HKEY_CLASSES_ROOT\CLSID\{871C5380-42A0-1069-A2EA-08002B30309D}.

4. Printers and Faxes—XP uses the LocalizedString value and Win2K uses the (Default) value in HKEY_CLASSES_ROOT\CLSID\{2227A280-3AEA-1069-A2DE-08002B30309D}.

3. Network and Dial-up Connections—XP uses the LocalizedString value and Win2K uses the (Default) value in HKEY_CLASSES_ROOT\CLSID\{7007ACC7-3202-11D1-AAD2-00805FC1270E}.

2. My Network Places—Both XP and Win2K use the LocalizedString value in HKEY_CLASSES_ROOT\CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}.

1. My Computer—Both XP and Win2K use the LocalizedString value in HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}.

End of Article



Reader Comments
Tried to change the name of MY Computer special folder on an XP SP1 system:
modifying LocalizedString as indicated did not work;
modifying Default as indicated did not work;
any suggestions?
Thanks.

Pat August 28, 2003


Badly written. In modifying the registry don't you think you should have clear instructions?

None October 30, 2003


Hey i want to rename my file to some particular folder, say rename a.txt to open as Control Panel (after giving some code) then when i use the code again it should be renamed to a.txt again.

Amit April 13, 2004


Pat, if your doing this on your own PC just right click and rename

Colin Young July 05, 2004


any idea how to rename outlook XP default folders i.e. Inbox, sent items, outbox etc. etc.

Anonymous User November 01, 2004


http://www.slipstick.com/files/ffolder.zip

Anonymous User November 24, 2004


Something that would be useful with this is actually stating where the enviroment variables are defined. For instance the My Documents variable that is refered to in thes instructions at HKEY_CLASSES_ROOT\CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103} is 9227. I can not find where this variable is defined or how to define one of my own.

Anonymous User February 23, 2005 (Article Rating: )


The process works, but the Enviroment Variables (EV) don't always seem to work.

To modify EV XP:
[Right-Click]My Computer->Properties->Advanced(Tab)->Enviroment Variables->New

Variable Name: <What you want to call ie %BILLYBOB%(leave off the %)>
Variable Value: <The string you want as the name ie Billy Bob Docus>

Anonymous User March 29, 2005 (Article Rating: )


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
Friday at PASS Europe 2006

Kevin talks about the closing day of the event and shares a funny Microsoft film. ...

PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

Escape From Yesterworld

Kevin points you to the funniest SQL Server website ever! ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Related Events Windows, Unix, Linux Interoperability

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing