From e6a08c171cdcd94a74cf3c1e5d3208315e4a187e Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Thu, 22 Apr 2021 12:33:04 +0200 Subject: [PATCH] made explorer quick access as config setting --- scripts/modify-explorer.cmd | 26 +++++++++++++++++++++++--- settings.cmd | 2 ++ 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/scripts/modify-explorer.cmd b/scripts/modify-explorer.cmd index d327270..1929d23 100644 --- a/scripts/modify-explorer.cmd +++ b/scripts/modify-explorer.cmd @@ -2,9 +2,29 @@ echo ####### %0 ####### -echo enabling quick access ... -reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^ - /v "HubMode" /t REG_DWORD /d 0 /f 1>nul +if EXIST settings.cmd ( + echo loading settings ... + call settings.cmd +) else ( + echo WARNING: settings.cmd not found! + echo setting defaults ... + set explorer_quick_access=1 +) + +echo ++++++++++++++++++ +echo explorer_quick_access=%explorer_quick_access% +echo ++++++++++++++++++ +echo. + +if %explorer_quick_access% == 0 ( + echo disabling explorer quick access ... + reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^ + /v "HubMode" /t REG_DWORD /d 1 /f 1>nul +) else ( + echo enabling explorer quick access ... + reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^ + /v "HubMode" /t REG_DWORD /d 0 /f 1>nul +) echo disabling network icon ... reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" ^ diff --git a/settings.cmd b/settings.cmd index 30afc3e..c781f09 100644 --- a/settings.cmd +++ b/settings.cmd @@ -6,3 +6,5 @@ set install_aerolite=1 set bgcol_R=3 set bgcol_G=131 set bgcol_B=135 +set explorer_quick_access=1 +