Loss of data is a big issue associated with formatting your computer. The Windows operating system comes with backup and recovery solutions which can prevent this unexpected problem. For this problem, one can use incremental back up to save important data in the computer before formatting. The Backup Utility of Windows' operating system supports this type of Incremental back up which saves all files that have changed since the last back up, and prevents data loss. One can launch this file to copy data from the C to D drive by saving the file extension name as .bat.
Windows] Incremental backup of data with .BAT (Batch)