DaGbyte Posted September 13, 2005 Share Posted September 13, 2005 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 Link to comment Share on other sites More sharing options...
n00dles Posted September 15, 2005 Share Posted September 15, 2005 Probably opening up winpedef.inf and adding / modifying Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders entries would do the trick. Link to comment Share on other sites More sharing options...
DaGbyte Posted September 15, 2005 Author Share Posted September 15, 2005 I addedHKCU,"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 More sharing options...
rtK Posted September 16, 2005 Share Posted September 16, 2005 Why don't you hardcode the path? In XP registry Shell Folders paths are hardcoded."X:\path\to\your\desktop" should work fine. Link to comment Share on other sites More sharing options...
n00dles Posted September 17, 2005 Share Posted September 17, 2005 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 More sharing options...
Takeshi Posted September 17, 2005 Share Posted September 17, 2005 I addedHKCU,"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??<{POST_SNAPBACK}>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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now