My Documents - default path

April 26, 2011 at 07:03:49
Specs: Windows XP/2003
Hi All,

I need a batch or vbs script to change the default path of "My Documents" to an "H:" drive.

Any help would be much appreciated.

Thanks


See More: My Documents - default path

Report •


#1
April 26, 2011 at 08:37:35
VBScript:
CreateObject("WScript.Shell").RegWrite _
  "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer" _
  & "\User Shell Folders\Personal", "H:\", "REG_EXPAND_SZ"

How To Ask Questions The Smart Way


Report •

#2
April 27, 2011 at 07:03:01
Many Thanks, the script works really well!

:)

Report •

Related Solutions


Ask Question