Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Accidentally deleted "My Documents" - How do I get it back?
New Posts  All Forums:Forum Nav:

Accidentally deleted "My Documents" - How do I get it back? - Page 3

post #21 of 23
Thread Starter 
Quote:
Originally Posted by Riou View Post

I ninja edited. Read my post again.

Nothing happens
post #22 of 23
Quote:
Originally Posted by lukeman3000 View Post

Nothing happens

What does it look like? Post a screenshot.

Are you saying that you moved your My Documents folder to Downloads? Now you have My Documents and Downloads using the exactly same folder (i.e. C:/Users/Username/Download)?

Try this:

Save the following code as UserShellFolders.reg. (It is from the registry of a fresh install of Windows 7 in a VM.)

User Shell Folders Default Registry code (Click to show)
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"AppData"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,00,00
"Cache"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,00,\
  6f,00,63,00,61,00,6c,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,66,\
  00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,00,54,00,65,00,\
  6d,00,70,00,6f,00,72,00,61,00,72,00,79,00,20,00,49,00,6e,00,74,00,65,00,72,\
  00,6e,00,65,00,74,00,20,00,46,00,69,00,6c,00,65,00,73,00,00,00
"Cookies"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,43,00,6f,00,6f,00,6b,00,69,00,65,00,73,00,00,00
"Desktop"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,44,00,65,00,73,00,6b,00,74,00,6f,00,70,00,00,00
"Favorites"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,46,00,61,00,76,00,6f,00,72,00,69,00,74,00,65,00,73,\
  00,00,00
"History"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,4c,\
  00,6f,00,63,00,61,00,6c,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,6f,00,\
  66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,00,48,00,69,\
  00,73,00,74,00,6f,00,72,00,79,00,00,00
"Local AppData"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,\
  49,00,4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,\
  00,4c,00,6f,00,63,00,61,00,6c,00,00,00
"My Music"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,4d,00,75,00,73,00,69,00,63,00,00,00
"My Pictures"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,\
  00,4c,00,45,00,25,00,5c,00,50,00,69,00,63,00,74,00,75,00,72,00,65,00,73,00,\
  00,00
"My Video"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,56,00,69,00,64,00,65,00,6f,00,73,00,00,00
"NetHood"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,4e,00,65,00,74,00,77,00,6f,00,72,00,6b,00,20,00,53,00,68,00,6f,00,72,00,\
  74,00,63,00,75,00,74,00,73,00,00,00
"Personal"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,44,00,6f,00,63,00,75,00,6d,00,65,00,6e,00,74,00,73,\
  00,00,00
"Programs"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,\
  72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,00,00
"Recent"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,00,\
  6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,\
  00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,00,\
  52,00,65,00,63,00,65,00,6e,00,74,00,00,00
"SendTo"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,4c,\
  00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,00,\
  6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,\
  00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,00,\
  53,00,65,00,6e,00,64,00,54,00,6f,00,00,00
"Startup"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,5c,00,50,00,\
  72,00,6f,00,67,00,72,00,61,00,6d,00,73,00,5c,00,53,00,74,00,61,00,72,00,74,\
  00,75,00,70,00,00,00
"Start Menu"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,\
  00,4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,\
  52,00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,\
  00,73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,\
  5c,00,53,00,74,00,61,00,72,00,74,00,20,00,4d,00,65,00,6e,00,75,00,00,00
"Templates"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,54,00,65,00,6d,00,70,00,6c,00,61,00,74,00,65,00,73,00,00,00
"{374DE290-123F-4565-9164-39C4925E467B}"=hex(2):25,00,55,00,53,00,45,00,52,00,\
  50,00,52,00,4f,00,46,00,49,00,4c,00,45,00,25,00,5c,00,44,00,6f,00,77,00,6e,\
  00,6c,00,6f,00,61,00,64,00,73,00,00,00
"PrintHood"=hex(2):25,00,55,00,53,00,45,00,52,00,50,00,52,00,4f,00,46,00,49,00,\
  4c,00,45,00,25,00,5c,00,41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,\
  00,6f,00,61,00,6d,00,69,00,6e,00,67,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,\
  73,00,6f,00,66,00,74,00,5c,00,57,00,69,00,6e,00,64,00,6f,00,77,00,73,00,5c,\
  00,50,00,72,00,69,00,6e,00,74,00,65,00,72,00,20,00,53,00,68,00,6f,00,72,00,\
  74,00,63,00,75,00,74,00,73,00,00,00

Next, copy and save the following code as ShellFoldersPersonal.reg.
Code:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Personal"="C:\\Users\\YourUserName\\Documents"

Change the part that says YourUserName into your account name. For example C:\Users\Riou\Documents\. Merge UserShellFolders.reg and ShellFoldersPersonal.reg into the registry.

Reboot your computer. (Alternatively you can end the explorer.exe process in Task Manager and open another explorer.exe process.)

Go to Libraries -> Documents -> right click -> Properties.
Click Restore Default. You may have to remove the My Document folder and click Apply. Then click Restore Default again.


Edited by Riou - 9/28/12 at 7:49pm
Stardust Speedway
(16 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500k Asus P8Z68-V Pro MSI HD 6970 16 GB Samsung DDR3 1600 MHz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 128 GB Samsung 830 256 GB Hitachi Deskstar 5K3000 2 TB Western Digital Black 1 TB 
CoolingOSKeyboardPower
Noctua NH-D14 SE2011 Windows 7 Professional 64-bit CM Storm QF Rapid Cherry Blue Antec TruePower New 750 W 
CaseMouseMouse PadAudio
Silverstone TJ09-B Steelseries Sensei Puretrak Talent Asus Xonar DX 
  hide details  
Reply
Stardust Speedway
(16 items)
 
  
CPUMotherboardGraphicsRAM
Core i5 2500k Asus P8Z68-V Pro MSI HD 6970 16 GB Samsung DDR3 1600 MHz 
Hard DriveHard DriveHard DriveHard Drive
Crucial M4 128 GB Samsung 830 256 GB Hitachi Deskstar 5K3000 2 TB Western Digital Black 1 TB 
CoolingOSKeyboardPower
Noctua NH-D14 SE2011 Windows 7 Professional 64-bit CM Storm QF Rapid Cherry Blue Antec TruePower New 750 W 
CaseMouseMouse PadAudio
Silverstone TJ09-B Steelseries Sensei Puretrak Talent Asus Xonar DX 
  hide details  
Reply
post #23 of 23
Quote:
Originally Posted by lukeman3000 View Post

I don't think we're talking about the same thing here. Libraries are different and (as I believe) completely separate from the actual folders themselves.
The user who posted the registry entry is much more along the lines of what I was talking about.

The icon would automatically come back, I believe. I've dealt with plenty of issues like this when I implemented a document redirection policy at work.
The Roll Cage
(16 items)
 
  
CPUMotherboardGraphicsRAM
3570k MSI Z77A-GD65 EVGA 660ti FTW 3GB SLI 16GB Corsair Vengeance LP White (4x4GB) 
Hard DriveHard DriveCoolingOS
Samsung 840 500GB Western Digital Caviar Black 750GB Prolimatech Megahalems Black Series Windows 7 Ultimate x64 
MonitorMonitorKeyboardPower
ASUS VG248QE Dell S2340M WASD Semi Custom w/ Cherry Reds + Switch Dampeners Corsair AX860 
CaseMouseMouse PadAudio
IN WIN D-Frame (Red, 90/500) Steelseries Sensei Fnatic Corsair Sony 7CH Amp w/ MartinLogan 2.0 
  hide details  
Reply
The Roll Cage
(16 items)
 
  
CPUMotherboardGraphicsRAM
3570k MSI Z77A-GD65 EVGA 660ti FTW 3GB SLI 16GB Corsair Vengeance LP White (4x4GB) 
Hard DriveHard DriveCoolingOS
Samsung 840 500GB Western Digital Caviar Black 750GB Prolimatech Megahalems Black Series Windows 7 Ultimate x64 
MonitorMonitorKeyboardPower
ASUS VG248QE Dell S2340M WASD Semi Custom w/ Cherry Reds + Switch Dampeners Corsair AX860 
CaseMouseMouse PadAudio
IN WIN D-Frame (Red, 90/500) Steelseries Sensei Fnatic Corsair Sony 7CH Amp w/ MartinLogan 2.0 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Windows
Overclock.net › Forums › Software, Programming and Coding › Operating Systems › Windows › Accidentally deleted "My Documents" - How do I get it back?