Jump to content

Change My Documents path in PE


Recommended Posts

Posted

Is there an easy way to change the location of My Docs in PE? What I'm getting at is I'd like to specify it during my build process - and no, I'm old school, no Bart's for me! A regedit maybe?

Anyone have any sugestions?

-DaG


Posted

Probably opening up winpedef.inf and adding / modifying Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders entries would do the trick.

Posted

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??

Posted

Why don't you hardcode the path? In XP registry Shell Folders paths are hardcoded.

"X:\path\to\your\desktop" should work fine.

Posted

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.

Posted
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.

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...