Moving desktop and documents location from partition C to D

The Desktop and Documents location in Windows can be moved from its default directory to another.

For Windows XP:

Desktop My Documents  
 

For Windows 7, 8, 10: