Monday, December 20, 2010

【 Weak current College 】 Windows 7 Optimization WinSxS folder in Visual FoxPro


In Vista and Windows7 system tray of the Windows directory, have a winsxs folder, for the entire Windows directory, the folder is taking up more than half its size (near 3GB) Moreover, as the system uses the constant extension of the time, the size of the winsxs folder will become larger, I now have 4G much, this is really a "pinch"! for system disk space was not very wealthy friends, this fast "dewlap" will inevitably slow down system performance. If only because of this reason, the repartition your hard disk to make system disk space becomes larger, then reinstall the system, this is too much trouble! today, Win7 resources station teach everyone a simpler way, this piece will be winsxs "dewlap" thrown into the other hard disk partitions for system disk make more unused space to let the system run faster.

The following resources station, Win7 to Windows7 for example, to highlight the specific action steps

Tips: the role of the winsxs folder

Winsxs is VISTA/Windows7 Windows directory as a very important folders, the folder inside has many important components, version is also very complex, in order to ensure the normal operation of Windows, the file is not deleted, these folders support the mscorwks.dll, without them nmscorwks also could not be loaded. If you forcibly removed and may only be reluctant in safe mode, enter the Windows Windows is "hanging".

Step one: establish a link. "From the official download PendMoves and MoveFile", and then downloads the name "PendMoves" zip format compressed extract to "X:\Windows\System32" directory (x is the system disk, the same below); and then click the menu "start-run", then in the pop-up "run" dialog box from Cmd and press the "Ctrl + Shift + Enter shortcut to run Cmd as administrator, open a" command prompt "window; the last window of the cursor, then perform the following two commands (each enter the command you want to press the Enter key, the same below)

cd\windows

mklink/Xwinsxs.linkwinsxs.moved

Step 2: get on the winsxs folder full control permissions. Double-click the desktop icon of the "computer", navigate to the "turn" Directory X:\Windows; then right-click the directory "winsxs" folder, select "Properties" and open "winsxs properties" dialog box, in the "security" tab and click the tab "Advanced" button, and then in the new popup "winsxs in advanced security settings" dialog box switch to the "owner" tab and click the tab "Edit" button; then in the pop-up dialog box select "Administrators" options and tick the "replace subcontainers and objects check box, the owner" and finally click "OK" button.

Step 3: rename and copy files. After you perform the first step in both DOS command, and then in the "command prompt" window cursor then performs the following two commands:

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

The two meanings of the DOS command: "X:\Windows" directory "winsxs" folder renamed to "winsxs.moved" and will "X:\Windows" directory "winsxs.link" renamed to winsxs.

Complete folders and file renaming, and then restart the system, then the "X:\Windows" directory "winsxs.moved" folder under the all content copied to the system disk to a hard disk partition other than the "Windows, winsxs" directory (e.g. "D:\Windows\winsxs").

Step 4: Associate and delete winsxs.moved "folder". Once again run Cmd as administrator, and then at the cursor point performs the following three commands:

cd?\windows

rmdirwinsxs

mklink/XwinsxsD:\windows\winsxs

After two DOS command mean: delete "X:\Windows" directory name "winsxs" link, and then create a new one with the same name links to D:\windows\winsxs "directory".

Complete links to D:\windows\winsxs "directory" is named "winsxs" new link created work, then reset the system will "X:\Windows" directory name "delete winsxs.moved" folder.

"Love handles" winsxs folder in the system disk other than the partition, which is a system tray free more unused space, Windows7 to run faster and this of course is granted. The friend may wish to try.

If you accidentally deleted the winsxs, can thisSample recovery: pick a system disk and then start running column enter the sfc/scannow to repair it.


No comments:

Post a Comment