Change my documents location from command prompt

Monday, October 12, 2009 Leave a Comment

We can change the target location of My Documents folder by editing the registry key. We can use reg.exe utility for this.  An example for changing my documents location is given below.

reg.exe add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal /t REG_SZ /d "d:\mydocs" /f

The above command will set the target folder for my documents as d:\mydocs.

1 comments »

  • Anonymous said:  

    U Rock!

  • Leave your response!