From 9803a46223a2a69a3a7dcec8b043a05ca50925f9 Mon Sep 17 00:00:00 2001 From: LoganDark Date: Thu, 10 Jun 2021 21:45:57 +0200 Subject: [PATCH] Delete things more granularly in the cache --- lockscreen-img.bat | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lockscreen-img.bat b/lockscreen-img.bat index 9304fbd..9be9c61 100644 --- a/lockscreen-img.bat +++ b/lockscreen-img.bat @@ -98,7 +98,9 @@ rem Clear cache takeown /r /d Y /f "%PROGRAMDATA%\Microsoft\Windows\SystemData" >nul icacls "%PROGRAMDATA%\Microsoft\Windows\SystemData" /reset /t >nul del /q /f "%PROGRAMDATA%\Microsoft\Windows\SystemData\*" >nul -for /d %%x in ("%PROGRAMDATA%\Microsoft\Windows\SystemData\*") do rd /s /q "%%x" +for /d %%x in ("%PROGRAMDATA%\Microsoft\Windows\SystemData\*") do ( + for /d %%y in ("%%x\ReadOnly\LockScreen_*") do rd /s /q "%%y" +) cls echo :: Windows 10 AME Lockscreen Wallpaper Changer