Source {
Http://sacookbook.blogspot.com/2011/02/moving-cusers-and-cprogramdata-to.html (Wall flip required)
Http://superuser.com/questions/445654/how-to-move-completely-the-programdata-folder-from-one-partition-in-to-another-p
Http://llloo.cn/archives/1018.html
Http://www.siqiboke.com/post/108.html
}
Role {
1. Reduce C: Size
2. You can install the software with confidence next, as long as the target partition (such as D :) is large enough
3. After reinstalling the system, you only need to redo Junction to use the previous user data and software configuration data.
}
After Windows 7 is properly installed, restart and press F8 to go to [repair computer], open [command prompt], switch to the system partition (usually C :), move the following directory {
User Data Directory users
Software Configuration data programdata
Default software installation locations: program files and program files (x86)
}
Command template (target partition X, moved directory name tobemoveddir ){
Robocopy c: \ tobemoveddir X: \ tobemoveddir/MIR/XJ
Rmdir/S/q c: \ tobemoveddir
Mklink/J c: \ tobemoveddir X: \ tobemoveddir
}
For example, move users to D: The command {
Robocopy c: \ Users D: \ users/MIR/XJ
Rmdir/S/q c: \ Users
Mklink/J c: \ Users D: \ Users
}
After reinstalling the system, redo junction {
Rmdir/S/q c: \ Users
Mklink/J c: \ Users D: \ Users
}
key command description {
robocopy c: \ tobemoveddir X: \ tobemoveddir/MIR/XJ
put the source file/directory (C: \ tobemoveddir) copy to the target file/directory (X: \ tobemoveddir), including sub-directories/sub-files, including empty sub-directories (/MIR), except for the files/directories (/XJ) pointed to by soft links ).
parameter description {
robocopy windows reliable file copy
C: \ tobemoveddir source file/directory location
X: \ tobemoveddir target file/directory location
/MIR image directory tree (equivalent to/E and/purge) {
/e copy subdirectory, including empty subdirectories
/purge Delete target files/directories that no longer exist in the source
}< br>/XJ exclude the combination points (usually including by default ), that is, do not copy the directory or file to which the soft link Points
You can also use this command to robocopy/e/copyall/XJ c: \ tobemoveddir X: \ tobemoveddir
/Copyall copies all file information (equivalent to/copy: datsou)
For detailed help documentation, run robocopy/? In cmd of win7 /? View.
}
Rmdir/S/q c: \ tobemoveddir
Recursive (/s) silent (/q) Delete (rmdir) specified directory (C: \ tobemoveddir)
Mklink/J c: \ tobemoveddir X: \ tobemoveddir
Create a soft connection (mklink/J) of junction. The soft link is named c: \ tobemoveddir, and the target file/directory is X: \ tobemoveddir.
}
Windows soft link: The difference between symbolic link and junction point {
Http://en.wikipedia.org/wiki/Symbolic_link#Microsoft_Windows
Http://en.wikipedia.org/wiki/NTFS_symbolic_link
Http://en.wikipedia.org/wiki/NTFS_junction_point
Summary {
Junction Point can only create soft links to local directories. Windows 2000 and above are available. XP can use tools such as early linkd and later higher-level junction.
Symbolic Link can be used to create soft links to local directories/files. It can also be used as a relative path or a remote path on the network. It is available in Windows Vista and above. The mklink command is provided in the system.
}
}