-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfont_cache_fix.cmd
33 lines (27 loc) · 1.49 KB
/
font_cache_fix.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
@echo off
:: stops "Windows Font Cache Service" and "Windows Presentation
:: Foundation Font Cache 3.0.0.0" (if exist), clears the FS cache
:: and re-enables them. A reboot is needed. You may want to keep
:: "Windows Presentation Foundation Font Cache 3.0.0.0" disabled
:: if you have any issues with higher than normal CPU on a legacy
:: Dot.Net applications. /Created By Elad Karako. August 2017.
echo.
echo Font-Cache Fix.
sc config "FontCache" start=disabled 2>nul >nul
sc config "FontCache3.0.0.0" start=disabled 2>nul >nul
sc config "WPFFontCache_v0400" start=disabled 2>nul >nul
sc stop "FontCache" 2>nul >nul
net stop "FontCache" /y 2>nul >nul
sc stop "FontCache3.0.0.0" 2>nul >nul
net stop "FontCache3.0.0.0" /y 2>nul >nul
sc stop "WPFFontCache_v0400" 2>nul >nul
net stop "WPFFontCache_v0400" /y 2>nul >nul
del /f /q "%SystemRoot%\System32\FNTCACHE.DAT" 2>nul >nul
del /f /q "%SystemRoot%\SysWOW64\FNTCACHE.DAT" 2>nul >nul
del /f /q "%SystemRoot%\System32\StaticCache.dat" 2>nul >nul
del /f /q "%SystemRoot%\SysWOW64\StaticCache.dat" 2>nul >nul
sc config "FontCache" start=auto 2>nul >nul
::sc config "FontCache3.0.0.0" start=auto 2>nul >nul
::sc config "WPFFontCache_v0400" start=auto 2>nul >nul
echo Done.
echo.