How to Repair/Recover Corrupted Files Using Command Prompt - Qiling  

How to Repair/Recover Corrupted Files Using Command Prompt


The Command Prompt can troubleshoot various Windows-related issues, including hard drive file repair, flash drive repair, and memory card issues. It can also help repair bad sectors on the hard drive and convert RAW files system to NTFS. Additionally, you can use built-in tools or third-party tools to fix corrupted files. Four possible solutions will be introduced in detail, so be sure to check them out!

Which Method Is Right for Me?

When dealing with corrupted files, you have four options to repair them using CMD. To help you decide which method is best for you, here's a comparison table listing all the solutions, allowing you to choose the one that suits your needs.

Features Qiling Data Recovery Software Run CHKDSK Command CHKDSK Alternative Run SFC Command
Supported File Types All files All files All files System files
Ease of Use Easy Complicated Easy Complicated
Risk   No Data loss Data loss No
Tech Knowledge Required No Yes No Yes

Method 1. Repair/Recover the Corrupted Files with Software

The most effective way to fix corrupted files is by using a file repair utility like Deep Data Recovery, which enables you to repair and restore corrupted photos, videos, Word documents, Excel files, or other files under all corruption scenarios.

To fix corrupted files in Windows 10, 8, and 7, download and run the Qiling file repair tool, which can repair corrupted files with just a few clicks.

Step 1. Launch Deep Data Recovery, select the desired file types, and click "Next" to initiate the recovery process.

Select file types that you want to recover

Step 2. 1. Choose a disk location where the corrupted files are saved. 2. Click "Scan" to start finding the broken files. 3.

select a location and click scan

Step 3. After scanning, you can quickly find corrupt data by file type, with options to repair damaged Word, Excel, or PDF documents by selecting the "Documents" category and filtering a specific type. For pictures and videos, the software supports a wide range of common file types, including JPEG, PNG, BMP, MOV, MP4, GIF, and more, making it easy to repair and recover corrupted media files.

recover and repair corrupted files

Step 4. Qiling file repair software will automatically fix broken files, allowing you to preview the repaired files before recovery. To complete the process, click "Recover" and save the recovered files to a different location to avoid data overwriting.

Method 2. Repair Corrupted Files Using Command Prompt (CHKDSK)

If there are logical bad sectors or the file system has become corrupted, you may not be able to access a file. In such cases, using the CHKDSK command can help repair corrupted files.

Step 1. To open Command Prompt as an administrator, type "CMD" in the Search box, right-click the Command Prompt result, and select "Run as administrator" from the context menu.

repair corrupt files using command line -1

Step 2. 1. Open Notepad (Windows) or TextEdit (Mac) and type the following command: `cd /f/r/x`. Replace `/f/r/x` with your drive letter (e.

repair corrupted files using command lines - 2

Method 3. Run CHKDSK Alternative to Repair Corrupted Files

Download Qiling CleanGenius and install it on your computer to start checking and refixing file system errors on your device.

Step 1. Click "File Showing" to enter the next step.

Step 2. Choose the target device, select the option to "Check and fix file system error", and click "Execute" to initiate the repair process for the problematic device.

Step 3. 1. Once the fixing process is complete, click on the link provided to access and utilize your device.

Method 4. Repair Corrupted Files Using Command Prompt (SFC)

Many computer problems are caused by corrupted system files, leading to instability issues and other problems in a Windows 10 installation.

Fortunately, the SFC command can fix corrupted system files on your system. To repair Windows 10, run the command prompt as an administrator, type the command "sfc /scannow" and press enter, then type "sfc /verify /offwindir" and press enter, and finally, restart your computer. This process will scan and replace any corrupted system files with the correct versions.

Step 1. To open the Command Prompt as an administrator, follow these steps: Open the Start menu, type cmd, and press Enter. Right-click on the Command Prompt icon that appears in the search results, and select "Run as administrator".

Step 2. Type: sfc /scannow and hit "Enter".

repair corrupted files using sfc

Conclusion

File corruption can occur suddenly and for various reasons, making it impossible to open normal files. Fortunately, there are methods to repair corrupted files, which can be tailored to individual needs. However, if command lines are not preferred, running Qiling data recovery software can make it easier to recover and repair corrupted files.

Related Articles


Is this information helpful?     

What can we do to improve this information? (Optional)
Refresh Please enter the verification code!