Created
August 2, 2016 09:07
-
-
Save stanwu/411f7f4b89779f2ad9cb7e1f9f77892f to your computer and use it in GitHub Desktop.
You have to install Glary Utilities first, 必須先安裝 Glary Utilities 這個工具 http://www.glarysoft.com/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| echo Clean SPx and upgrade cache... | |
| DISM.exe /online /Cleanup-Image /StartComponentCleanup | |
| DISM.exe /online /Cleanup-Image /SPSuperseded | |
| DISM.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase | |
| echo Run Glary Utilities... | |
| :CheckOS | |
| IF EXIST "%PROGRAMFILES(X86)%" (GOTO 64BIT) ELSE (GOTO 32BIT) | |
| :64BIT | |
| "C:\Program Files (x86)\Glary Utilities 5\OneClickMaintenance.exe" /schedulestart | |
| GOTO END | |
| :32BIT | |
| "C:\Program Files\Glary Utilities 5\OneClickMaintenance.exe" /schedulestart | |
| GOTO END | |
| :END | |
| echo Disk cleanup... | |
| c:\windows\SYSTEM32\cleanmgr.exe /d c: /sagerun:64 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have run as Administrator by right click menu, 您必須點擊滑鼠右鍵以系統管理員身份執行