From: http://www.jb51.net/ OS /windows/22224.html
Most people must have used the system slimming function in the Rubik's Cube, Vista optimization master, or Windows 7 optimization master produced by soft media. One of the most common features of slimming space is to operate a folder: winsxs folder.
As you know, there is a winsxs folder under the Windows directory of the Vista and Windows 7 system disks. For the entire Windows Directory, this folder takes up half of the size (nearly 3 GB) in addition, as the system usage time continues to extend, the size of the winsxs folder will become larger. I have more than 4 GB now. This is really a piece of "fat!
For friends who are not very wealthy in the space of system disks, this will inevitably slow down the system operation speed. If this is the only reason, it would be too troublesome to repartition the hard disk to make the space of the System Disk larger, and then reinstall the system! In fact, we can take a simpler method, computer network school (http://www.pcedu123.com) Remind everyone to winsxs this piece of "fat" to other hard disk partition, to free up more unused space for the system disk so that the system can run faster. Next, I will take Windows 7 as an example to introduce the specific operation steps. The same is true for Vista.
TIPS: function of the winsxs folder
Winsxs is a very important folder under the Windows directory of Vista/Windows 7. There are many important components in this folder, and the version is also very complex. To ensure the normal operation of windows, files in the folder cannot be deleted. These folders support mscorwks. DLL. nmscorwks cannot be loaded without them. If you forcibly delete the file, you may only be able to barely enter windows in safe mode, and windows will be "suspended.
Step 1: create a link. Download "pendmoves and movefile" from the official website, decompress the downloaded zip package named "pendmoves" to the "X: \ windows \ system32" Directory (X is the system disk, click "start-Run" in the menu, Enter cmd in the pop-up "run" dialog box, and press the "Ctrl + Shift + enter" shortcut key to run cmd as an administrator, open the "command prompt" window. Execute the following two commands at the cursor of the last window (press the Enter key for each command entered, the same below)
CD \ WINDOWS
Mklink/X winsxs. Link winsxs. Moved
Step 2: obtain full control permissions on the winsxs folder. Double-click the "computer" icon on the desktop, locate the "X: \ windows" directory, right-click the "winsxs" folder under the directory, and select "properties ", open the "Security" tab in the "winsxs properties" dialog box, and click the "advanced" button on this tab, switch to the "owner" tab in the pop-up "winsxs Advanced Security Settings" dialog box and click the "edit" button on the tab; in the displayed dialog box, select the "Administrators" option, select the "Replace sub-container and object owner" check box, and click "OK.
Step 3: Rename and copy files. After executing the two DOS commands in step 1, execute the following commands in sequence at the cursor position in the "command prompt" window:
Movefile X: \ windows \ winsxs. Moved movefile X: \ windows \ winsxs. Link X: \ windows \ winsxs
The two doscommands are used to rename the "winsxs" folder under the "X: \ windows" directory to "winsxs. moved. link "to winsxs.
After renaming the folder and file, restart the system, and rename winsxs in the "X: \ windows" directory. copy all the content in the moved folder to the "windows, winsxs" Directory (for example, "d: \ windows \ winsxs") in a hard disk partition other than the system disk.
Step 4: Create an association and delete the winsxs. Moved folder. Run cmd again as an administrator, and then execute the following three commands at the cursor:
CD \ WINDOWS
Rmdir winsxs
Mklink/X winsxs D: \ windows \ winsxs
The following two DOS commands mean to delete the "winsxs" Link under the "X: \ windows" directory, and then create a new link with the same name, pointing to "D: \ windows \ winsxs "directory.
After creating a new link pointing to the "D: \ windows \ winsxs" directory named "winsxs", restart the system, and then set "X: \ Windows "directory named" winsxs. you can delete the moved folder.
Throwing the winsxs folder to a partition other than the system disk to free up space for the system disk. Windows 7 can run faster, which of course is a matter of course. If you need it, try it.
If you accidentally delete winsxs, you can recover it as follows: Take a Windows 7 system installation disk and use one-click repair system from Windows 7 optimization master and Vista optimization master.
However, it is not recommended that new users directly operate on this folder. If they want to lose weight on the system disk, they can simply use the system slimming function in the cube, Vista optimization master, or Windows 7 optimization master produced by soft media.