Skip to content

Commit da97515

Browse files
committed
feat: disable explorer home (along with gallery)
1 parent b537366 commit da97515

3 files changed

Lines changed: 56 additions & 0 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
title: Disable File Explorer Home
3+
description: Removes Home from File Explorer and opens File Explorer to This PC by default
4+
builds: [ '>=22000' ]
5+
actions:
6+
- !cmd:
7+
command: '"AtlasDesktop\4. Interface Tweaks\File Explorer Customization\Home\Disable Home (default).cmd" /silent'
8+
exeDir: true
9+
wait: true
10+
runas: currentUserElevated
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo off
2+
:: Change to match the setting name (e.g., Sleep, Indexing, etc.)
3+
set "settingName=Home"
4+
:: Change to 0 (Disabled) or 1 (Enabled/Minimal) etc
5+
set "stateValue=0"
6+
set "scriptPath=%~f0"
7+
8+
set "scriptArgs=%*"
9+
call "%windir%\AtlasModules\Scripts\prepareSetting.cmd" "%settingName%" "%stateValue%" "%scriptPath%" "%scriptArgs%"
10+
if errorlevel 1 exit /b
11+
12+
:: End of state and path update
13+
14+
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f > nul 2>&1
15+
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d "1" /f > nul
16+
17+
if "%~1" == "/justcontext" exit /b
18+
if "%~1"=="/silent" exit /b
19+
20+
echo Changes applied successfully.
21+
echo Press any key to exit...
22+
pause > nul
23+
exit /b
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
@echo off
2+
:: Change to match the setting name (e.g., Sleep, Indexing, etc.)
3+
set "settingName=Home"
4+
:: Change to 0 (Disabled) or 1 (Enabled/Minimal) etc
5+
set "stateValue=1"
6+
set "scriptPath=%~f0"
7+
8+
set "scriptArgs=%*"
9+
call "%windir%\AtlasModules\Scripts\prepareSetting.cmd" "%settingName%" "%stateValue%" "%scriptPath%" "%scriptArgs%"
10+
if errorlevel 1 exit /b
11+
12+
:: End of state and path update
13+
14+
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{f874310e-b6b7-47dc-bc84-b9e6b38f5903}" /f > nul
15+
reg add "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" /v "LaunchTo" /t REG_DWORD /d "0" /f > nul
16+
17+
if "%~1" == "/justcontext" exit /b
18+
if "%~1"=="/silent" exit /b
19+
20+
echo Changes applied successfully.
21+
echo Press any key to exit...
22+
pause > nul
23+
exit /b

0 commit comments

Comments
 (0)