Throw away the "clam meat" to make Windows 7 run faster

  

I don't know if you noticed it. In the Windows directory of the Vista and Windows 7 system disks, there is a folder called winsxs, for the entire Windows directory. This folder takes up more than half of its volume (nearly 3GB). Not only that, but as the system usage time continues to increase, the size of the winsxs folder will become larger. I have more 4G now, this is really A piece of "clam meat"! Think about it! For those who are not very wealthy in the system disk space, this fast "smashing meat" will inevitably slow down the system. If it's just for this reason, it's too much trouble to repartition the hard drive to make the system disk space bigger and then reinstall the system! In fact, we can take a simpler way to throw winsxs into the other hard disk partitions, free up more unused space for the system disk and make the system run faster. Below, the author uses Windows 7 as an example to introduce you to the specific steps.

Tips:

The role of the winsxs folder

winsxs is a very important folder in the Windows directory of Vista/Windows 7, there are many important ones in this folder. The components and versions are also very complicated. In order to ensure the normal operation of Windows, the files inside are not deleted. These folders support mscorwks.dll, and they cannot be loaded without mscorwks. If you force the deletion, you may only be able to enter Windows in safe mode, and Windows will "hang".

Step 1: Establish a link.

Download "PendMoves and MoveFile" from http://technet.microsoft.com/en-us/bb897556.aspx, and then extract the downloaded ZIP format compression package named "PendMoves" to "X". :\\Windows\\System32" directory (X is the system disk, the same below); then click the menu "Start - Run", then in the pop-up "Run" dialog box, enter Cmd and press "Ctrl+Shift+Enter" Shortcut key, run Cmd as administrator, open the "command prompt" window; the last two commands are executed at the cursor of the last window (every command is entered, press the Enter key, the same below)

cd \\windows

mklink /X winsxs.link winsxs.moved

Tips:

The meaning of the DOS command "mklink /X winsxs.link winsxs.moved" is established A link to winsxs.moved called winsxs.link.

Step 2: Get full control over the winsxs folder.

Double-click the "Computer" icon on the desktop, and then navigate to the "X:\\Windows" directory; then right-click the "winsxs" folder in the directory and select "Properties" to open the dialog box for the winsxs property. "Security" tab and click the "Advanced" button on the tab, then switch to the "Owners" tab in the new pop-up "Winsxs Advanced Security Settings" dialog and click on the "Edit" tab " button; then select the "Administrators" option in the pop-up dialog box and check the "Replace sub-container and object owner" checkbox, and finally click the "OK" button.

Step 3: Rename and copy files.

After executing the two DOS commands in the first step, the following two commands are executed at the cursor at the Command Prompt window:

movefile X:\\Windows\\winsxs X:\\Windows\\winsxs.moved

movefile X:\\Windows\\winsxs.link X:\\Windows\\winsxs

Tips:

The meaning of these two DOS commands Rename the "winsxs" folder in the "X:\\Windows" directory to "winsxs.moved" and "winsxs.link" in the "X:\\Windows" directory to winsxs.

After completing the renaming of folders and files, restart the system, and then copy all the contents of the "winsxs.moved" folder under the "X:\\Windows" directory to a system disk. You can use the "Windows\\winsxs" directory of the hard disk partition (such as "D:\\Windows\\winsxs").

Step 4: Establish associations 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 meaning of the two DOS commands is: delete the link named "winsxs" in the "X:\\Windows" directory, and then create a new link with the same name, pointing to "D:\\windows" \\winsxs" directory.

After completing the creation of a new link named winsxs pointing to the "D:\\windows\\winsxs" directory, then restart the system, and finally the name "winsxs.moved" in the "X:\\Windows" directory. The folder can be deleted.

Throwing the "small meat" winsxs folder to other partitions outside the system disk, thus freeing up more unused space for the system disk. Windows 7 can run faster. This is of course a matter of course. . A friend who needs this may wish to give it a try.

If you accidentally delete winsxs, you can restore it like this

Get a system disk and then type sfc /scannow in the Start Run field to fix it.

Copyright © Windows knowledge All Rights Reserved