How to Repair/Recover Corrupted Files Using Command Prompt

In this article, we'll show you how to perform two different Windows 10 repair and recovery procedures to fix corrupted files on Windows 10/8.1/8/7. EaseUS data recovery software can restore and repair corrupted Windows files with simple steps. Run this software if you need additional help.

Table of Contents

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 EaseUS 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. EaseUS Data Recovery Wizard enables you to repair and restore corrupted photos, videos, Word documents, Excel files, or other files under all corruption scenarios.

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

Step 1. Select a disk location where the corrupt files are saved. Click "Scan" to start finding the corrupt files and repairing them.

select a location and click scan

Step 2. This program will scan all over the location to find lost and corrupted files as many as possible.

Use the "Filter" > "Type" to specify the exact corrupted file type and use the left pane to locate needed files in "Deleted Files", "Other Lost Files > Files Lost Original Name", or "Tags" quickly.

scan and repair corrupt files

Step 3. Double-click on the damaged file and start repairing files.

Once repaired, select the target file and click "Recover." You should save the repaired corrupted files to a different location to avoid data overwriting.

recover corrupted files

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

Click to   DOWNLOAD EaseUS 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.

click file showing

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.

select device and check fix file system error

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

After fixing file system error, click to open and use 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 EaseUS data recovery software. This is software makes it easy to recover and repair corrupted files.

Was This Page Helpful?

Updated by Brithny

Brithny is a technology enthusiast, aiming to make readers' tech life easy and enjoyable. She loves exploring new technologies and writing technical how-to tips. On her spare time, she loves sharing things about her favorite singer - Taylor Swift on her Facebook or Twitter.

Read full bio

Approved by Daisy

Daisy is the Senior editor of the writing team for EaseUS. She has been working in EaseUS for over ten years, starting from a technical writer to a team leader of the content group. As a professional author for over 10 years, she writes a lot to help people overcome their tech troubles.

Read full bio

Product Reviews

TrustScore 4.7 | 323 reviews
  • EaseUS Data Recovery Wizard is a powerful system recovery software, designed to enable you to recover files you’ve deleted accidentally, potentially lost to malware or an entire hard drive partition.

    Read More
  • EaseUS Data Recovery Wizard is the best we've seen. It's far from perfect, partly because today's advanced disk technology makes data-recovery more difficult than it was with the simpler technology of the past.

    Read More
  • EaseUS Data Recovery Wizard Pro has a reputation as one of the best data recovery software programs on the market. It comes with a selection of advanced features, including partition recovery, formatted drive restoration, and corrupted file repair.

    Read More