A lightweight command-line utility for Windows that displays directory trees with color-coded files and folders. Written in pure C with full Unicode support.
- Tree-style directory visualization
- Color-coded output (folders, files, sizes)
- Full Unicode support (works with Cyrillic, CJK, Arabic, etc.)
- File size formatting (B, KB, MB, GB)
- Summary statistics (total files, folders, size)
- Works from any directory once installed
- Compatible with Windows XP through Windows 11
- Download or clone this repository
- Run
build.batto compile - Run
setup.batas administrator to install to System32 - Use
vlscommand from anywhere
gcc vls.c -o vls.exe -O2 -s
copy vls.exe C:\Windows\System32\vls # List current directory
vls C:\path # List specific directory
vls .. # List parent directory- Windows XP or later
- GCC compiler (MinGW/MinGW-w64) for building
VLS also includes a clean Windows-only CMake configuration.
It builds the same targets as build.bat:
- vls64.exe — Windows 64-bit
- vls32.exe — Windows 32-bit
- vls7.exe — Windows 7 (NT 6.1)
- vlsXP.exe — Windows XP (NT 5.1, static)
- CMake 3.10+
- MinGW-w64 GCC toolchain (32-bit + 64-bit)
- Windows XP or later
cmake -B build
cmake --build buildTested and working on:
- Windows 11
- Windows 10
- Windows 7
- Windows XP
Works with any GCC-compatible compiler, including old MinGW versions (GCC 6.3+).
MIT License - See LICENSE file for details.
Pull requests are welcome. For major changes, open an issue first to discuss what you'd like to change.
