Current location - Health Preservation Learning Network - Slimming men and women - Ask a question about the computer operating system. What is the winsxs folder for?
Ask a question about the computer operating system. What is the winsxs folder for?
Under the Windows directory of Vista and Windows7 system disks, there is a folder named winsxs, which occupies more than half of the volume (nearly 3GB) of the whole Windows directory. Not only that, with the continuous extension of system usage time, the volume of winsxs folder will also become larger, and mine is now more than 4G, which is really "fat"! For friends whose system disk space is not rich, this "fat" will inevitably slow down the running speed of the system. If it is only for this reason, it will be too much trouble to repartition the hard disk to make the system disk space larger and then reinstall the system! Today, Win7 Resource Station teaches you an easier way to throw the fat of winsxs into other hard disk partitions to make more unused space for the system disk and make the system run faster.

Below, the Win7 resource station takes Windows 7 as an example to introduce the specific operation steps for everyone.

Tips: the role of winsxs folder

Winsxs is a very important folder in the Windows directory of VISTA/Windows 7. There are many important components in this folder, and the version is also very complicated. In order to ensure the normal operation of Windows, the files in it cannot be deleted. These folders support mscorwks.dll, and nmscorwks cannot be loaded without them. If you forcibly delete it, you may only be able to barely enter Windows in safe mode, and Windows will "hang up".

Step one: establish contact. Download "PendMoves and MoveFile" from the official, and then extract the downloaded ZIP compressed package named "PendMoves" into the directory "X: \ Windows \ System32" (X is the system disk, the same below); Click "Start-Run" in the menu, then enter exit Cmd in the pop-up "Run" dialog box and press the shortcut key "Ctrl+Shift+Enter" to run Cmd as an administrator to open the "Command Prompt" window; At the cursor of the last window, execute the following two commands in turn (press Enter for each command, the same below).

cd \windows

mklink/X winsxs . link winsxs . moved

Step 2: Get full control of the winsxs folder. Double-click the "Computer" icon on the desktop and navigate to the "X: \ Windows" directory in turn; Then right-click the "winsxs" folder in this directory, select Properties, open the "Security" tab of the "winsxs Properties" dialog box, click the "Advanced" button of this tab, and then switch to the "Owner" tab in the newly popped "winsxs Advanced Security Settings" dialog box, and click the "Edit" button of this tab; In the pop-up dialog box, select the "Administrator" option, check the "Replace the owner of sub-containers and objects" check box, and finally click the "OK" button.

Step 3: Rename and copy the file. After executing the two DOS commands in the first step, execute the following two commands in turn at the cursor of the command prompt window:

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

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

After renaming the folders and files, restart the system, and then copy all the contents under the "winsxs.moved" folder in the "X: \ Windows" directory to the "Windows, winsxs" directory of the hard disk partition other than the system disk (for example, "D: \ Windows \ winsxs").

Step 4: Establish association and delete the "winsxs.moved" folder. Run Cmd as an administrator again, and then execute the following three commands in turn at the cursor:

cd? \windows

rmdir winsxs

mklink/X winsxs D:\ windows \ winsxs

The last two DOS commands mean: delete the link named "winsxs" in the "X: \ Windows" directory, and then create a new link with the same name, pointing to the "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 delete the folder named "winsxs.moved" under the "X: \ Windows" directory.

Throw the "fat" winsxs folder into other partitions other than the system disk, thus freeing up more unused space for the system disk, and Windows 7 can naturally run faster. Friends in need may wish to have a try.

If you accidentally delete winsxs, you can restore it like this: take a system disk and enter sfc /scannow repair in the start running column.