Winsxs folder for Windows 7 system minus weight loss

  

WinSxS is an important directory under the Windows directory, the files inside are not removable. There are many important components under WinSxS, and the version is very complicated. In order to ensure the normal operation of Windows, please make sure that these files are not enough. For this reason, as the system usage time continues to increase, the size of the winsxs folder will become larger, and gradually become a piece of “赘肉””! For the system disk space is not very wealthy friends, this is fast “赘肉” will inevitably slow down the system. If for this reason only, re-partition the hard disk to make the system disk space bigger, and then reinstall the system, this is really too much trouble! In fact, we can take an easier way to winsxs this A piece of “赘肉” is thrown into other hard disk partitions to make more unused space for the system disk and make the system run faster. Below, I will use Windows 7 as an example to introduce you to the specific steps

Tips: The role of the winsxs folder

winsxs is a very important Windows directory for VISTA/Windows 7. The folder, there are many important components in the folder, the version is also very complicated, in order to ensure the normal operation of Windows, the files inside can not be deleted, these folders support mscorwks.dll, without them nmscorwks can not be loaded. If you forcefully delete it, you may only be able to enter Windows in safe mode, and Windows will also hang up.

Step 1: Create a link. First download the "PendMoves and MoveFile" from the official, and then extract the downloaded ZIP file compression package named "PrdMoves" to the "X:\\Windows\\System32" directory (X is the system disk, the same below); Click the menu “Start & mdash; Run”, then go to Cmd in the pop-up “Run” dialog and press “Ctrl+Shift+Enter"shortcut to run Cmd as administrator and open” Command prompt “ window; the last two cursors in the last window execute the following two commands (press the Enter key for each command input),

cd \\windows

mklink /X winsxs.link winsxs.moved

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 on the ““winsxs” folder in the directory and select “Attributes” to open the ““winsxs attribute&rdquo” ; the "Security" tab of the dialog box and click the "Advanced" button on the tab, then switch to "Owner" in the new pop-up "Winsxs Advanced Security Settings" dialog box. ; tab and click the "Edit" button on the tab; in the pop-up dialog box, select the “Administrators” option 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, execute the following two commands at the "Command Prompt" window cursor:

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

The meanings of these two DOS commands are: Will be in the directory of "X:\\Windows” “winsxs” folder renamed to "winsxs.moved", renamed "winsxs.link" in the "X:\\Windows" directory to winsxs.

Complete folders and files After renaming the work, restart the system, and copy all the contents of the “winsxs.moved” folder in the "X:\\Windows" directory to a hard disk partition outside the system disk"Windows, winsxs” Under the directory (such as “D:\\Windows\\winsxs”).

Step 4: Establish associations and delete the folder "winsxs.moved". 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 "ldsxs" in the directory "X:\\Windows", and then create a new link with the same name, pointing to “ D:\\windows\\winsxs” directory.

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

Throwing the “赘肉”winsxs folder into a different partition than 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. It's a thing. A friend who needs this may wish to give it a try. If you accidentally delete winsxs, you can restore it by taking a system disk and typing sfc /scannow in the Start Run field to fix it.

Copyright © Windows knowledge All Rights Reserved