Mekrel Posted February 7, 2005 Posted February 7, 2005 I know in winnt.sif you can putProfileDir="Path" or something like that, so you get documents and settings on say F:\drive.but this means that the desktop is also stored on F and will have to format F each time i go to format the system. I know you can move the my documents folder in windows by going to start and right clicking the my documents icon and going into properties.so is there a way to do this unattended. So I can just move the my documents folder. this would be a great help Many thanks
Yzöwl Posted February 7, 2005 Posted February 7, 2005 This has been answered on many occasionsPut this redirect.inf with Cmdlines.txt in $OEM$[Version]Signature=$CHICAGO$[DefaultInstall]AddReg=Reg.Settings[Reg.Settings]HKCU,"%SMWCvEUSF%",Personal,0x20000,"%PERSONAL%"HKCU,"%SMWCvEUSF%","My Pictures",0x20000,"%PICTURES%"HKCU,"%SMWCvEUSF%",Favorites,0x20000,"%FAVORITES%"HKCU,"%SMWCvEUSF%","My Music",0x20000,"%MUSIC%"[Strings]SMWCvEUSF = "Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"PERSONAL = "F:\%USERNAME%\My Documents"PICTURES = "F:\%USERNAME%\My Documents\My Pictures"FAVORITES = "F:\%USERNAME%\Favorites"MUSIC = "F:\%USERNAME%\My Documents\My Music"And call it with this line in your Cmdlines.txt[Commands]"rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\redirect.inf"Just change the drive location in the four strings at the bottom of the file.If you decide not to attribute the %USERNAME% variable to the strings, you should also change the 0x20000 to 0 in all the [Reg.Settings] keys
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