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

How to Repair/Recover Corrupted Files Using Command Prompt


Command Prompt can troubleshoot many problems related to Windows including hard drive file repair, flash drive repair, and memory cards. This powerful built-in utility has helped many users to repair bad sectors on the hard drive and convert the RAW files system to NTFS. To fix the corrupted file, you can also use the built-in tools or a third-party tool. Here four possible solutions will be introduced in detail. Check them now!

Which Method Is Right for Me?

When it comes to repairing corrupted files using CMD, you'll receive at least four ways. To save your time, all the solutions are listed in the comparison table below. And you can know which method is right for you according to 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. Deep Data Recovery enables you to repair and restore corrupted photos, videos, Word documents, Excel files, or other files under all corruption scenarios.

Download and run the Qiling file repair tool to fix corrupted files in Windows 10, 8, and 7 with a few clicks.

Step 1. Launch Deep Data Recovery. Choose file types and click "Next" to start.

Select file types that you want to recover

Step 2. Select a disk location where the corrupted files are saved. Click "Scan" to start finding the broken files. Qiling file repair tool allows you to fix damaged documents, videos, and pictures in differnet formats. 

select a location and click scan

Step 3. After scanning, you can quickly find corrupt data by file type. If you want to repair damaged Word, Excel, or PDF, select Documents and filter a specific category. For pictures and videos repair, all the common types are suppored, including JPEG, PNG, BMP, MOV, MP4, GIF, and more.

recover and repair corrupted files

Step 4. Qiling file repair software will automatically fix broken files. You can preview the repaired files before recovery. Last, 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 corrupted, you can't access the file. In this case, you can use the CHKDSK command to repair corrupted files. Here are the details.

Step 1. In the Search box, type CMD. Right-click the Command Prompt and choose "Run as administrator".

repair corrupt files using command line -1

Step 2. Type E: /f /r /x, hit the Enter. You can replace E with your drive letter (Where you store your Excel files).

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. Let's start checking and refixing file system error on your device now.

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

Step 2. Choose the target device and tick the box of "Check and fix file system error". Click "Execute" to start fixing the problematic device.

Step 3. When the fixing process completes, click "here" to open and use your device. 

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

Many computer problems are caused by corrupted system files. If your Windows 10 installation is corrupted, you'll encounter instability issues and all sorts of other problems.

Fortunately, the SFC command can fix corrupted system files on your system. Here are the steps to repair Windows 10.

Step 1. Open Search box, type CMD. Right-click the Command Prompt and choose "Run as administrator".

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

repair corrupted files using sfc

Conclusion

File corruption can happen suddenly and for a variety of reasons. When normal files get corrupted, you won't be able to open them. The methods above can help you repair corrupted files according to your needs. If it's hard for you to repair files using command lines, run Qiling data recovery software. This is software makes it easy 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!