An upgraded, zero-dependency Windows Batch + PowerShell hybrid tool designed to dynamically scan, format, and export customizable folder structure reports via drag-and-drop.
FolderLogger is a powerful yet lightweight Windows utility engineered to map complex directory hierarchies safely and effortlessly. Combining a seamless Batch drag-and-drop launcher with an embedded PowerShell engine, it gives you complete control over folder scan depth, file inclusion, size reporting, and hidden items.
It generates clean, beautifully indented tree views with distinct root separators and accurate size calculations (KB, MB, GB), exporting full audit logs straight to your Desktop with automatic, collision-free .txt file versioning.
1 level (root only), 2 levels (subfolders), or 0 for infinite scanning.---------------------------------------), and adaptive spacing when files are listed..txt extension.FolderLogger.zip and extract FolderLogger.bat anywhere on your computer.FolderLogger.bat file icon.Below is an example of the structured text report generated on your Desktop when scanning a folder with files and size options enabled:
Folder Log for: Projects
Generated on: 8/1/2026 12:22:49 AM
Target Path: C:\Users\Admin\Projects
---------------------------------------
Client Archive
2025 Financials
- Q4_Report.pdf (1.24 MB)
- Summary.xlsx (450.00 KB)
2026 Proposals
- Proposal_v1.docx (85.50 KB)
---------------------------------------
Active Deliverables
Assets
- Logo.png (512.20 KB)
Source Files
- main.cpp (12.40 KB)
---------------------------------------
SUMMARY
Total Folders: 4
Total Files: 5
Total Size: 2.27 MB
---------------------------------------
Inside the script's internal logic and safety procedures:
Strips trailing backslashes from %targetDir% to prevent Batch quote-escaping bugs from corrupting parameters passed to PowerShell.
Uses a bulletproof GOTO routine to skip the File Size prompt whenever File Listing is set to No.
Executes an inline, in-memory PowerShell block via -ExecutionPolicy Bypass for high-performance recursive scanning.
Uses native .NET framework calls ([Environment]::GetFolderPath) to resolve Desktop paths and safely append .txt extensions.
Renders clean spaces for subfolder structures while automatically appending divider bars between root-level directories.
Aggregates total counts for folders, files, and total byte totals during execution, generating a precise end-of-report summary.