Skip to content
This repository was archived by the owner on May 28, 2021. It is now read-only.

Commit 47f8b9d

Browse files
ZweikeksDisassembler0
authored andcommitted
Complement explorer folder options (#206)
1 parent 30af458 commit 47f8b9d

2 files changed

Lines changed: 83 additions & 2 deletions

File tree

Default.preset

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,17 @@ SetVisualFXPerformance # SetVisualFXAppearance
120120
# EnableVerboseStatus # DisableVerboseStatus
121121

122122
### Explorer UI Tweaks ###
123+
# ShowExplorerTitleFullPath # HideExplorerTitleFullPath
123124
ShowKnownExtensions # HideKnownExtensions
124125
ShowHiddenFiles # HideHiddenFiles
126+
# ShowSuperHiddenFiles # HideSuperHiddenFiles
127+
# ShowEmptyDrives # HideEmptyDrives
128+
# ShowFolderMergeConflicts # HideFolderMergeConflicts
125129
EnableNavPaneExpand # DisableNavPaneExpand
130+
# ShowNavPaneAllFolders # HideNavPaneAllFolders
126131
# EnableFldrSeparateProcess # DisableFldrSeparateProcess
127132
# EnableRestoreFldrWindows # DisableRestoreFldrWindows
133+
# ShowEncCompFilesColor # HideEncCompFilesColor
128134
# DisableSharingWizard # EnableSharingWizard
129135
# HideSelectCheckboxes # ShowSelectCheckboxes
130136
HideSyncNotifications # ShowSyncNotifications

Win10.psm1

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1846,6 +1846,21 @@ Function DisableVerboseStatus {
18461846
#region Explorer UI Tweaks
18471847
##########
18481848

1849+
# Show full directory path in Explorer title bar
1850+
Function ShowExplorerTitleFullPath {
1851+
Write-Output "Showing full directory path in Explorer title bar..."
1852+
If (!(Test-Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState")) {
1853+
New-Item -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" -Force | Out-Null
1854+
}
1855+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" -Name "FullPath" -Type DWord -Value 1
1856+
}
1857+
1858+
# Hide full directory path in Explorer title bar, only directory name will be shown
1859+
Function HideExplorerTitleFullPath {
1860+
Write-Output "Hiding full directory path in Explorer title bar..."
1861+
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\CabinetState" -Name "FullPath" -ErrorAction SilentlyContinue
1862+
}
1863+
18491864
# Show known file extensions
18501865
Function ShowKnownExtensions {
18511866
Write-Output "Showing known file extensions..."
@@ -1870,18 +1885,66 @@ Function HideHiddenFiles {
18701885
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "Hidden" -Type DWord -Value 2
18711886
}
18721887

1873-
# Enable navigation pane expanding to current folder
1888+
# Show protected operating system files
1889+
Function ShowSuperHiddenFiles {
1890+
Write-Output "Showing protected operating system files..."
1891+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSuperHidden" -Type DWord -Value 1
1892+
}
1893+
1894+
# Hide protected operating system files
1895+
Function HideSuperHiddenFiles {
1896+
Write-Output "Hiding protected operating system files..."
1897+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowSuperHidden" -Type DWord -Value 0
1898+
}
1899+
1900+
# Show empty drives (with no media)
1901+
Function ShowEmptyDrives {
1902+
Write-Output "Showing empty drives (with no media)..."
1903+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideDrivesWithNoMedia" -Type DWord -Value 0
1904+
}
1905+
1906+
# Hide empty drives (with no media)
1907+
Function HideEmptyDrives {
1908+
Write-Output "Hiding empty drives (with no media)..."
1909+
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideDrivesWithNoMedia" -ErrorAction SilentlyContinue
1910+
}
1911+
1912+
# Show folder merge conflicts
1913+
Function ShowFolderMergeConflicts {
1914+
Write-Output "Showing folder merge conflicts..."
1915+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideMergeConflicts" -Type DWord -Value 0
1916+
}
1917+
1918+
# Hide folder merge conflicts
1919+
Function HideFolderMergeConflicts {
1920+
Write-Output "Hiding folder merge conflicts..."
1921+
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "HideMergeConflicts" -ErrorAction SilentlyContinue
1922+
}
1923+
1924+
# Enable Explorer navigation pane expanding to current folder
18741925
Function EnableNavPaneExpand {
18751926
Write-Output "Enabling navigation pane expanding to current folder..."
18761927
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneExpandToCurrentFolder" -Type DWord -Value 1
18771928
}
18781929

1879-
# Disable navigation pane expanding to current folder
1930+
# Disable Explorer navigation pane expanding to current folder
18801931
Function DisableNavPaneExpand {
18811932
Write-Output "Disabling navigation pane expanding to current folder..."
18821933
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneExpandToCurrentFolder" -ErrorAction SilentlyContinue
18831934
}
18841935

1936+
# Show all folders in Explorer navigation pane
1937+
Function ShowNavPaneAllFolders {
1938+
Write-Output "Showing all folders in Explorer navigation pane..."
1939+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneShowAllFolders" -Type DWord -Value 1
1940+
}
1941+
1942+
# Hide all folders in Explorer navigation pane except the basic ones (Quick access, OneDrive, This PC, Network), some of which can be disabled using other tweaks
1943+
Function HideNavPaneAllFolders {
1944+
Write-Output "Hiding all folders in Explorer navigation pane (except the basic ones)..."
1945+
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "NavPaneShowAllFolders" -ErrorAction SilentlyContinue
1946+
}
1947+
18851948
# Enable launching folder windows in a separate process
18861949
Function EnableFldrSeparateProcess {
18871950
Write-Output "Enabling launching folder windows in a separate process..."
@@ -1906,6 +1969,18 @@ Function DisableRestoreFldrWindows {
19061969
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "PersistBrowsers" -ErrorAction SilentlyContinue
19071970
}
19081971

1972+
# Show coloring of encrypted or compressed NTFS files (green for encrypted, blue for compressed)
1973+
Function ShowEncCompFilesColor {
1974+
Write-Output "Showing coloring of encrypted or compressed NTFS files..."
1975+
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowEncryptCompressedColor" -Type DWord -Value 1
1976+
}
1977+
1978+
# Hide coloring of encrypted or compressed NTFS files
1979+
Function HideEncCompFilesColor {
1980+
Write-Output "Hiding coloring of encrypted or compressed NTFS files..."
1981+
Remove-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced" -Name "ShowEncryptCompressedColor" -ErrorAction SilentlyContinue
1982+
}
1983+
19091984
# Disable Sharing Wizard
19101985
Function DisableSharingWizard {
19111986
Write-Output "Disabling Sharing Wizard..."

0 commit comments

Comments
 (0)