In-Place Windows File Explorer Folder Sizes & Disk Space Analyzer
Seamlessly filling in the blank folder sizes directly inside Windows File Explorer's native "Size" column — click-through, adaptive, and lightning fast.
About • Features • Visual Tour • How It Works • Modes • Quick Start • Shortcuts & Tray • Configuration • Building & Testing • License
In standard Windows File Explorer Details view, individual files display exact sizes (e.g., 84.5 MB, 62 KB), but folder sizes are always left blank. Finding which directory consumes your disk space traditionally meant opening folder properties one-by-one or launching heavy, separate disk inspection tools.
SizeScanner solves this natively in File Explorer.
Instead of forcing you into a disconnected third-party interface, SizeScanner acts as an intelligent companion layer: it tracks the directory you are viewing, calculates subfolder sizes concurrently in the background, and projects those sizes right into the blank space of Windows File Explorer's native "Size" column.
- 🎯 Native In-Place Integration: Folder sizes appear naturally in Explorer's own list view, aligned with existing file sizes.
- 🖱️ 100% Click-Through & Transparent: Powered by Windows layered extended styles (
WS_EX_LAYERED | WS_EX_TRANSPARENT). Click, double-click, drag files, select rows, right-click, and scroll without any interference or input capture. - 🎨 Adaptive Style & Dark Mode: Automatically detects Windows Light/Dark mode (
AppsUseLightTheme), window DPI scaling, and active Segoe UI font metrics to match Explorer pixel-for-pixel. - ⚡ High Performance & Low Latency: Win32 window discovery runs in under 1ms, background multithreaded scanning publishes progressive results in real time, and instant LRU caching makes navigation feel immediate.
- 🛡️ Local-First & Offline: Completely self-contained with zero network calls, zero telemetry, and zero tracking.
|
Draws folder sizes directly into File Explorer's native Details view. Sits unobtrusively in your system tray and disappears the instant Explorer loses focus. |
Need a deeper breakdown? Snap a companion sidebar directly to the edge of your active File Explorer window, tracking your navigation with live visual percent bars. |
|
Launch a full-featured disk utility with interactive Folder Contents, Expandable Tree, Top 100 Largest Files, and File Types Breakdown charts. |
Toggle sizes on or off on the fly using |
|
Measures Explorer's row padding and active text color on startup, adapting effortlessly to custom themes, high-DPI displays, and theme switches. |
Background |
Subfolder sizes render automatically in Explorer's blank "Size" column. All mouse and keyboard clicks pass directly through to Explorer windows.
A sleek sidebar that snaps to the right side of the active File Explorer window, showing visual space consumption bars and subfolder counts as you navigate.
Comprehensive disk inspection with quick drive selector, expandable tree navigation, top 100 space hogs, file extension categorization, and Recycle Bin integration.
SizeScanner combines lightweight Win32 system APIs with non-blocking UIAutomation probes and multithreaded scanning:
flowchart TD
subgraph Windows Environment
EXP["📁 Windows File Explorer (CabinetWClass)"]
INPUT["🖱️ User Mouse & Keyboard Input"]
end
subgraph SizeScanner Service
TRACKER["🔍 Explorer Tracker (EnumWindows & COM / UIA)"]
SCANNER["⚡ ThreadPool Scanner (Explicit Stack & LRU Cache)"]
OVERLAY["🪟 Layered Transparent Overlay (WS_EX_TRANSPARENT)"]
WATCHDOG["⏱️ 40ms Focus & Geometry Watchdog"]
end
EXP -->|HWND / Active Path| TRACKER
TRACKER -->|Target Directory| SCANNER
SCANNER -->|Sizes & MTime Cache| OVERLAY
EXP -->|Header & Row Rectangles| OVERLAY
WATCHDOG -->|Position Follow / Auto-Hide| OVERLAY
INPUT -->|100% Passthrough| EXP
- Zero-Latency Input Passthrough: The overlay window applies
WS_EX_LAYERED | WS_EX_TRANSPARENT | WS_EX_TOOLWINDOWand-transparentcolor. Windows directs all clicks, wheel scrolls, drags, and hover states straight to File Explorer. - Fast Z-Ordered Window Discovery: Window discovery uses raw Win32
EnumWindows(<1ms). Heavier COM/UIAutomation resolution only runs for the single active window. - Smart Drag Following: A 40ms watchdog recalculates window delta offsets using fast Win32
GetWindowRect, following smooth window dragging without triggering heavy UIAutomation sweeps. - Per-Operation Cancel Tokens: When you navigate into a different folder, the previous scan operation's
CancelTokenis immediately triggered, preventing stale background scans from overwriting current view data. - Two-Tier Size Caching: Folder sizes are keyed by directory path, modification time (
mtime), and time-to-live (CACHE_TTL_SECONDS), ensuring revisited directories display instantaneously.
SizeScanner provides three complementary interfaces powered by the same high-performance scanning engine:
| Mode | Command / Entry Point | Description | Ideal For |
|---|---|---|---|
| In-Place Overlay | SizeScanner.exe(default) |
Sits in the Windows system tray and renders folder sizes directly into File Explorer's Size column. | Everyday browsing without changing your workflow. |
| Companion Sidebar | SizeScanner.exe --companion |
Docks a compact sidebar to the active File Explorer window with tree view and percentage bars. | Organizing messy directories alongside Explorer. |
| Disk Analyzer | SizeScanner.exe --full(or path argument) |
Standalone window with multi-tab analysis (Folder Contents, Tree, Top 100, File Types). | In-depth disk cleanup and storage auditing. |
Run the pre-compiled standalone executable:
dist\SizeScanner\SizeScanner.exeUpon launching:
- SizeScanner minimizes to the Windows System Tray with a blue lightning icon.
- Open any folder in Windows File Explorer Details view — folder sizes will begin appearing automatically!
- Double-click
Run-SizeScanner.batin the repository root. - To generate a convenient Desktop shortcut, run:
powershell -ExecutionPolicy Bypass -File .\Create-Desktop-Shortcut.ps1
Ensure dependencies are installed, then launch directly:
# Default In-Place Overlay Service
python main.py
# Launch Docked Companion Sidebar
python main.py --companion
# Launch Standalone Disk Analyzer
python main.py --full
# Analyze a specific path directly
python main.py "D:\Projects"| Shortcut | Action | Description |
|---|---|---|
| Ctrl + Alt + S | Toggle SizeScanner | Instantly toggles in-Explorer folder sizes on or off. State is persisted across reboots. |
Tip
When toggled off, SizeScanner pauses all background scans and UI tracking completely, sitting dormant in the tray with zero CPU overhead.
Right-click the blue ⚡ tray icon at any time to access:
- Show sizes in Explorer: Checkmark toggle for the in-place overlay (left-clicking the icon toggles this directly).
- Open Companion Sidebar: Launches the docked sidebar alongside Explorer.
- Open Full Analyzer App: Launches the standalone multi-tab disk analyzer.
- Edit Settings…: Opens the configuration file in your default editor.
- Exit: Quits SizeScanner cleanly.
Settings are saved in your user profile:
%APPDATA%\SizeScanner\settings.json
{
"hotkey": "ctrl+alt+s",
"start_enabled": true,
"right_padding": null,
"text_color_dark": null,
"text_color_light": null
}| Key | Type | Default | Description |
|---|---|---|---|
hotkey |
string |
"ctrl+alt+s" |
Global keyboard combination (e.g. "ctrl+shift+f9", "alt+home"). Set to "" to disable. |
start_enabled |
boolean |
true |
Whether folder sizes are enabled automatically when SizeScanner starts. |
right_padding |
integer | null |
null |
Right-side column padding in pixels (null auto-measures Explorer's native padding). |
text_color_dark |
string | null |
null |
Hex color for dark mode (null auto-detects Explorer's font color). |
text_color_light |
string | null |
null |
Hex color for light mode (null auto-detects Explorer's font color). |
- Windows 10 (build 19041+) or Windows 11 (x64)
- Python 3.10+
- Required Python packages:
pip install pywin32 uiautomation customtkinter pystray Pillow psutil send2trash comtypes
Run the automated build script:
python build_exe.pyThe compiled standalone application will be packaged into:
dist/SizeScanner/SizeScanner.exe
SizeScanner includes an automated test suite covering the scanning engine, overlay geometry, live Explorer tracking, and hotkey parsing:
# Core multithreaded scanning engine & cache test
python test_scanner.py
# Live overlay service test against an actual Explorer window (~3.5s)
python test_inplace_service.py
# Overlay geometry tracking (window movement and resize adaptation)
python test_overlay_follow.py
# Repaint coalescing, stale-scan guarding, and style retry backoff
python test_overlay_updates.py
# Settings parser and global hotkey registration
python test_settings_hotkey.py
# Column padding and color auto-measurement test
python test_column_style.pySizeScanner is open-source software licensed under the MIT License.
- Developer: projectGloria
- Aesthetic Inspiration: Built with attention to Windows design principles, seamless desktop integration, and native responsiveness.
- Contributions: Issues, feature suggestions, and pull requests are warmly welcomed!


