From 9904fbcfe5a96ef2cd7e46e68ddcd51e9475e540 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Thu, 22 Apr 2021 12:24:48 +0200 Subject: [PATCH] removed recent and frequent from explorer --- tools/logon.cmd | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tools/logon.cmd b/tools/logon.cmd index 3d1313e..c6393e9 100644 --- a/tools/logon.cmd +++ b/tools/logon.cmd @@ -167,6 +167,12 @@ del /F /Q %APPDATA%\Microsoft\Windows\Recent\AutomaticDestinations\* 2>nul del /F /Q %APPDATA%\Microsoft\Windows\Recent\* 2>nul del /F /Q %APPDATA%\Microsoft\Windows\Libraries\* 2>nul +echo Disabling frequent and recent files in explorer ... +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" ^ + /v "ShowRecent" /t REG_DWORD /d 0 /f 1>nul +reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer" ^ + /v "ShowFrequent" /t REG_DWORD /d 0 /f 1>nul + echo Restarting explorer ... taskkill /f /im explorer.exe 2>nul rem sleep 2 seconds ...