JSI Tip 10512. The ' Documents' category is NOT displayed in My Computer?

Jerold Schulman

May 23, 2006

1 Min Read
ITPro Today logo


When you see the Files Stored in This Computer category of My Computer in Windows XP, you see the Shared Documents category but not the Documents category.

This behavior can occur if you rename your user account, or if a registry entry was deleted.

To add the Documents category to the My Computer display, I have scripted DocFolderPaths.bat.

The syntax that an Administrator would use to add your Documents category to the My Computer display is:

DocFolderPaths LogonName "My Documents Path"Where:

LogonName         is the logon name, like Jerry.My Documents Path is the path to LogonName's My Documents folder, like C:Documents and SettingsJerryMy Documents.

The Administrator must restart the computer for the change to become effective.

DocFolderPaths.bat contains:

@echo offIf {%2}=={} @echo Syntax: DocFolderPaths LogonName "My Documents Path"&goto :EOFsetlocalset SAMID=%1set MyDocs=%2@echo REG ADD HKLMSoftwareMicrosoftWindowsCurrentVersionExplorerDocFolderPaths /V %SAMID% /T REG_SZ /F /D %MyDocs%REG ADD HKLMSoftwareMicrosoftWindowsCurrentVersionExplorerDocFolderPaths /V %SAMID% /T REG_SZ /F /D %MyDocs%endlocal



Sign up for the ITPro Today newsletter
Stay on top of the IT universe with commentary, news analysis, how-to's, and tips delivered to your inbox daily.

You May Also Like