Skip to content

Windows frontend for CHDMAN. A Windows desktop utility for batch converting various disk image formats to CHD (Compressed Hunks of Data) format and for verifying the integrity of existing CHD files.

License

Notifications You must be signed in to change notification settings

drpetersonfernandes/BatchConvertToCHD

Repository files navigation

Batch Convert to CHD

License: GPL v3 .NET 10.0 Platform: Windows

Batch Convert to CHD is a high-performance Windows desktop utility designed to streamline the conversion of various disk image formats into the Compressed Hunks of Data (CHD) format.

Batch Convert to CHD Screenshot Batch Convert to CHD Screenshot

🚀 Key Features

💻 Multi-Architecture Support

  • Native ARM64 & x64: Automatically detects your system architecture and utilizes the appropriate chdman and 7-Zip binaries for maximum efficiency.
  • Optimized Performance: Leverages native instructions on ARM64 hardware to reduce overhead during heavy compression tasks.

🛠️ Intelligent Conversion

  • Automated Batch Processing: Convert entire directories of disk images with real-time progress monitoring.
  • Smart Command Selection: Automatically detects the optimal chdman command (createcd, createdvd, createhd, or createraw) based on file headers and extensions.
  • Archive Integration: Transparently handles .zip, .7z, and .rar archives, extracting and processing contents automatically.
  • CSO Decompression: Built-in support for .cso (Compressed ISO) files via maxcso integration (available on x64).

✅ Integrity & Verification

  • Batch Verification: Validate the checksums and structural integrity of existing CHD files.
  • Automated Organization: Optionally move verified or failed files into dedicated subfolders (Success/Failed) for easy library management.
  • Recursive Scanning: Support for deep-folder verification passes.

📊 Performance & UI

  • Real-time Telemetry: Monitor disk write/read speeds and elapsed time during operations via Windows Performance Counters.
  • Comprehensive Logging: Detailed, timestamped logs for auditing and troubleshooting.

📂 Supported Formats

Category Formats
Standard Images .iso, .cue (+.bin), .img, .raw, .toc
Console Specific .cdi (Dreamcast/Saturn), .gdi (Dreamcast)
Compressed .cso (Compressed ISO)
Archives .zip, .7z, .rar
Output .chd (Compressed Hunks of Data)

🛠️ Technical Logic

The application implements priority-based logic to ensure compatibility:

  1. DVD Images (.iso): Defaults to createdvd.
  2. Hard Disk Images (.img): Defaults to createhd.
  3. Raw Data (.raw): Defaults to createraw.
  4. Multi-track/CD Images (.cue, .cdi, .gdi, .toc): Defaults to createcd.

Note: Users can manually override these settings via the UI to force specific modes.


💻 Requirements

  • Operating System: Windows 10 / 11 (x64 or ARM64)
  • Runtime: .NET 10.0 Desktop Runtime
  • Bundled Dependencies:
    • chdman.exe / chdman_arm64.exe (MAME Project)
    • 7z_x64.dll / 7z_arm64.dll (SevenZipSharp library)
    • maxcso.exe (CSO Decompression - x64 only)

📥 Installation

  1. Download the latest binary from the Releases page.
  2. Extract the contents to a permanent folder.
  3. Important: Ensure all .exe and .dll files (including ARM64 variants) remain in the same directory as BatchConvertToCHD.exe.
  4. Launch the application.

📖 Usage

Conversion Workflow

  1. Navigate to the Convert to CHD tab.
  2. Select your Source Folder (containing images or archives).
  3. Select your Output Folder.
  4. (Optional) Enable "Delete original files" to clean up source data after a successful conversion.
  5. Click Start Conversion.

Verification Workflow

  1. Navigate to the Verify CHD Files tab.
  2. Select the folder containing your .chd files.
  3. Configure folder organization options (Success/Failed folders).
  4. Click Start Verification.

🤝 Contributing & Support

If you encounter issues or have feature requests, please use the GitHub Issues tracker.

Support the Project: If this tool saves you time, consider supporting further development:


📜 License

This project is licensed under the GNU General Public License v3.0. See the LICENSE.txt file for details.

Acknowledgements:


Developed by Pure Logic Code

About

Windows frontend for CHDMAN. A Windows desktop utility for batch converting various disk image formats to CHD (Compressed Hunks of Data) format and for verifying the integrity of existing CHD files.

Topics

Resources

License

Stars

Watchers

Forks

Languages