The Cross-Platform Folder Comparison Tool is a comprehensive utility designed to analyze and compare the contents of two folders, providing detailed insights into file differences, similarities, and discrepancies. This tool generates professional Excel reports with clickable hyperlinks, color-coded comparisons, and detailed file inventories across Windows, macOS, and Linux platforms.
File structure: Multi-sheet Excel workbook with professional formatting
Setup Sheet:
System Information
Operating System: Windows 11 22H2
Machine: AMD64
Compared Folders
Folder A: C:\Users\Documents\ProjectA
Folder B: D:\Backup\ProjectA
Report Generated: 2025-07-10 14:30:25
A_Folder Sheet:
Index
File Name
Path
File Size (bytes)
Full Path
1
document.pdf
subfolder
2,048,576
C:....pdf
2
image.jpg
images
1,024,000
C:....jpg
B_Folder Sheet:
Index
File Name
Path
File Size (bytes)
Full Path
1
document.pdf
subfolder
2,048,576
D:....pdf
2
report.docx
docs
512,000
D:....docx
Compare Sheet:
Index
A_Folder Files
B_Folder Files
1
subfolder/document.pdf
subfolder/document.pdf
2
images/image.jpg
🟧 docs/report.docx
Visual Formatting Features:
Color coding: Light orange cells (🟧) indicate files unique to one folder
Hyperlinks: Blue underlined paths clickable to open files directly
AutoFilter: Dropdown arrows in headers for dynamic filtering
Professional styling: Bold headers, auto-sized columns, consistent formatting
Real-Time Console Output:
System detection and initialization:
Detected OS: Windows 11.0.22000
Path separator: '\'
All required modules are available.
======================================================================
CROSS-PLATFORM FOLDER COMPARISON TOOL
Running on: Windows 11.0.22000
======================================================================
Progress tracking:
Step 1: Select the first folder (a_folder)
Selected folder: C:\Users\Documents\ProjectA
Step 2: Select the second folder (b_folder)
Selected folder: D:\Backup\ProjectA
Step 3: Setting up report folder and output file...
Created report directory: C:\Scripts\report
Output file will be: C:\Scripts\report\05-compare-2025-07-10--14-30.xlsx
Step 4: Scanning a_folder...
Scanning folder: C:\Users\Documents\ProjectA
Found 1,247 files in C:\Users\Documents\ProjectA
Step 5: Scanning b_folder...
Scanning folder: D:\Backup\ProjectA
Found 1,198 files in D:\Backup\ProjectA
Step 6: Creating Excel report...
Creating setup sheet...
Creating a_folder sheet...
Added 1,247 files to a_folder sheet
Creating b_folder sheet...
Added 1,198 files to b_folder sheet
Creating compare sheet...
Added comparison data for 1,247 files with color coding
AutoFilter applied to compare sheet
Excel file saved successfully
======================================================================
PROCESS COMPLETED SUCCESSFULLY!
======================================================================
Report saved as: 05-compare-2025-07-10--14-30.xlsx
A_folder files: 1,247
B_folder files: 1,198
Operating System: Windows
Completion Dialog:
GUI success message:
Comparison completed successfully!
Report saved as: 05-compare-2025-07-10--14-30.xlsx
Operating System: Windows
A_folder files: 1,247
B_folder files: 1,198
The Excel file contains:
• 'setup' sheet: System info and folder paths
• 'a_folder' sheet: All files from the first folder
• 'b_folder' sheet: All files from the second folder
• 'compare' sheet: Side-by-side comparison with color coding
Color coding: Light orange cells indicate files that don't exist in the other folder
You can click on file paths in the Excel file to open them directly!
Statistical Summary:
The report includes comprehensive metrics:
Total file counts for each folder
Size information for individual files
System information for audit purposes
Timestamp documentation for report tracking
Difference highlighting for quick identification of discrepancies
Advanced Analysis Features
Interactive Excel Functions:
AutoFilter capabilities: Sort and filter data dynamically
Hyperlink navigation: Direct file access from Excel cells
Color-coded visualization: Immediate identification of differences
Multi-sheet organization: Structured data presentation
Cross-Platform Path Handling:
Path normalization: Consistent comparison across operating systems
No part of this publication may be reproduced, distributed, or transmitted in any form or by any means, including photocopying, recording, or other electronic or mechanical methods, without the prior written permission of the publisher, except in the case of brief quotations embodied in critical reviews and certain other noncommercial uses permitted by copyright law.
For permission requests, write to the publisher at: Email us
Contact Us
If you have any question or comment please contact us at Email us and make sure you add python-book at the beginning of the subject.
[1] "Time taken to run the Quarto document: 0.0871970653533936 seconds"