58 lines
1.7 KiB
Batchfile
58 lines
1.7 KiB
Batchfile
@echo off
|
|
|
|
set SCRIPT_SETTINGS=settings.cmd
|
|
set CUSTOM_SETTINGS=..\custom\settings.cmd
|
|
|
|
rem default: disabled
|
|
set explorer_quick_access=0
|
|
|
|
echo ####### %0 #######
|
|
|
|
echo.
|
|
echo searching for SCRIPT settings ...
|
|
if NOT EXIST %SCRIPT_SETTINGS% (
|
|
echo INFO: config file %SCRIPT_SETTINGS% NOT FOUND
|
|
) else (
|
|
echo OK. Loading SCRIPT settings ...
|
|
call %SCRIPT_SETTINGS%
|
|
)
|
|
|
|
echo.
|
|
echo searching for CUSTOM settings ...
|
|
if NOT EXIST %CUSTOM_SETTINGS% (
|
|
echo INFO: config file %CUSTOM_SETTINGS% NOT FOUND
|
|
) else (
|
|
echo OK. Loading CUSTOM settings ...
|
|
call %CUSTOM_SETTINGS%
|
|
)
|
|
|
|
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
|
|
) else (
|
|
echo enabling explorer quick access ...
|
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^
|
|
/v "HubMode" /t REG_DWORD /d 0 /f
|
|
)
|
|
|
|
echo disabling network icon ...
|
|
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\NonEnum" ^
|
|
/v "{F02C1A0D-BE21-4350-88B0-7367FC96EF3C}" /t REG_DWORD /d 1 /f
|
|
|
|
echo removing 3d Objects ...
|
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f 2>nul
|
|
reg delete "HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}" /f 2>nul
|
|
|
|
echo restarting explorer ...
|
|
taskkill /f /im explorer.exe 1>nul 2>nul
|
|
start explorer.exe
|
|
|
|
echo ####### %0 #######
|
|
|