MSFN Forum: redirect "%USERPROFILE%\My Documents" ONLY - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

If you have questions about customizing Windows XP that are nLite-specific, please post them in the nLite forum, not here. If you have questions regarding the unattended installation of Windows XP, please post them in the Unattended Windows 2000/XP/2003 section.
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

redirect "%USERPROFILE%\My Documents" ONLY Without changing entire ProfileImagePath? Rate Topic: -----

#1 User is offline   elcoyoteloco 

  • Group: Members
  • Posts: 6
  • Joined: 12-March 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 12 March 2010 - 04:26 AM

Hi all,

I have successfully changed the My Documents default path of C:\Documents and Settings\*****\My Documents to D:\My Documents. Every reference to the old path I could find in the registry now points to the new path.

So far, so good, except that I have a bunch of shortcuts that reference %USERPROFILE%\My Documents, which still points to the old location in my user folder in Documents and Settings. I have been researching this, but the only thing I've found is instructions to change the ProfileImagePath string in the registry (currently it is %SystemDrive%\Documents and Settings\*****. However, doing that would effect EVERYTHING in my user folder, not just My Documents.

So, is there a way to redirect %USERPROFILE%\My Documents, without effecting everything else in my user folder?

Thanks!


#2 User is offline   GrofLuigi 

  • GroupPolicy Tattoo Artist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,160
  • Joined: 21-April 05
  • OS:none specified
  • Country: Country Flag

Posted 12 March 2010 - 05:48 AM

The obvious: can't you replace the reference in the shortcuts from %USERPROFILE% to the new path (in this case D:)?

Otherwise, I think the answer to your question is PROBABLY NO. :(

PROBABLY because you might be able to work something out with symbolic links (junction points), but there is a (small) chance that some programs might not interpret them correctly. And I think nothing can be done from the registry.

GL

#3 User is offline   elcoyoteloco 

  • Group: Members
  • Posts: 6
  • Joined: 12-March 10
  • OS:XP Pro x86
  • Country: Country Flag

Posted 12 March 2010 - 06:21 AM

View PostGrofLuigi, on 12 March 2010 - 05:48 AM, said:

The obvious: can't you replace the reference in the shortcuts from %USERPROFILE% to the new path (in this case D:)?


Well, sure, but there's a lot of them so it will be tedious to do so. Also, I want to make sure this doesn't become a recurring issue.

Thanks tho :)

EDIT: I think you're right, this can't be done, not without effecting the other user folders.

This post has been edited by elcoyoteloco: 12 March 2010 - 11:59 AM


#4 User is offline   tommyp 

  • MSFN Addict
  • Group: Developers
  • Posts: 1,664
  • Joined: 09-January 04
  • OS:none specified
  • Country: Country Flag

Posted 12 March 2010 - 02:41 PM

Sure it's possible. Here's the reg file. Sorry, I'm too lazy to attach it as a downloadable file.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\Shell Folders]
"My Pictures"="D:\\My Documents\\My Pictures"
"Personal"="D:\\My Documents"

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\explorer\User Shell Folders]
"My Pictures"="D:\\My Documents\\My Pictures"
"Personal"="D:\\My Documents"

[HKEY_USERS\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"My Pictures"="D:\\My Documents\\My Pictures"
"Personal"="D:\\My Documents"

[HKEY_USERS\.Default\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"My Pictures"="D:\\My Documents\\My Pictures"
"Personal"="D:\\My Documents"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Personal"="D:\\My Documents"
"My Pictures"="D:\\My Documents\\My Pictures"

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders]
"Personal"="D:\\My Documents"
"My Pictures"="D:\\My Documents\\My Pictures"

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Save Directory"="D:\\My Documents\\"

#5 User is offline   GrofLuigi 

  • GroupPolicy Tattoo Artist
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,160
  • Joined: 21-April 05
  • OS:none specified
  • Country: Country Flag

Posted 12 March 2010 - 03:42 PM

View Posttommyp, on 12 March 2010 - 02:41 PM, said:

Sure it's possible. Here's the reg file.

He's already done that. As far as I understood, he wants to change 'the definition of the paths' in Windows (not to change shortcuts - too many of them) to:

%USERPROFILE% == C:\Documents and Settings\***** (same as before)

%USERPROFILE%\My Documents == D:\My Documents


GL

This post has been edited by GrofLuigi: 12 March 2010 - 03:43 PM


#6 User is offline   cluberti 

  • Gustatus similis pullus
  • Group: Supervisor
  • Posts: 10,937
  • Joined: 09-September 01
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 12 March 2010 - 05:03 PM

The problem is, those *are* the locations that would change the %userprofile% variable for a user. If you set the proper locations and things are not changing, are we sure the shortcut is still using the %userprofile%\My Documents variable, or did it change the variable to the correct path on creation?

#7 User is offline   g-force 

  • Tester
  • PipPipPipPip
  • Group: Members
  • Posts: 596
  • Joined: 20-June 07
  • OS:XP Pro x86
  • Country: Country Flag

Posted 12 March 2010 - 11:03 PM

I´M not sure about that, cause this is a HKCU-Setting:
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders]
"Personal"="YourDrive\YourFolder"

I replaced my current setting with "YourDrive\YourFolder".
I´m on a german system, don`t know if I´m right about "My Documents = Eigene Dateien".

#8 User is offline   os2fan2 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 390
  • Joined: 09-September 04

Posted 17 March 2010 - 12:19 AM

Then again, it's possible to use linkd or junction, to point this to a new location.

ren "my Documents" personal
linkd "my Documents" (new path and file) 



Copy My Documents to new location.

Works like a charm.

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy