Jump to content

Change My Documents path in PE


DaGbyte

Recommended Posts


I added

HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Desktop", REG_SZ, "%SystemDrive%\Documents and Settings\Default User\Desktop"

and when I built PE and booted into it, it did not substitute %SystemDrive% with X:\. Any ideas??

Link to comment
Share on other sites

I agree with rtK - you might as well hard code it since WinPE is hardcoded to use drive X.

But to answer your question, you need to specify a REG_EXPAND_SZ value if you want to use environment variables in the value data.

Either way will work.

Link to comment
Share on other sites

I added

HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders", "Desktop", REG_SZ, "%SystemDrive%\Documents and Settings\Default User\Desktop"

and when I built PE and booted into it, it did not substitute %SystemDrive% with X:\. Any ideas??

The desktop is not where My Docs folder is.

Why would you want to move to X anyway? It's not a real drive.

In the above subkey, the path to My Documents is under the value name Personal.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...