How to Fix a Corrupt & Unreadable Fileby Tyran DeWaltUpdated September 28, 2017
Any time you need to access an unreadable or corrupt file, you can restore the file using a basic procedure native to your Windows operating system. Nothing is more frustrating than trying to open an important file when it is inaccessible. Issues such as system crashes, power outages and bad sectors can result in an unreadable or corrupt file. Fortunately, Windows contains many tools that will allow you to fix unreadable and corrupt files.
Click “Start” and click “All Programs.”
Select “Accessories” and right-click “Command Prompt.” Click “Run as administrator.”
Type “sfc /scannow” at the prompt and press “Enter.” Allow the scan to detect and fix the corrupt and unreadable files.
Type the following commands at the prompt one at a time to determine the status of the corrupt file:
findstr /C:"[SR] Cannot repair member file" %windir%\logs\cbs\cbs.log >sfcdetails.txt
edit sfcdetails.txt A log will appear that contains an entry for the file(s) that did not repair.
Type the following commands at the prompt one at a time and press “Enter:”
takeown /f Path_And_File_Name
(For example, takeown /f E:\windows\system32\jscript.dll)
icacls Path_And_File_Name /GRANT ADMINISTRATORS:F
(For example, icacls E:\windows\system32\jscript.dll /grant administrators:F)
Copy Path_And_File_Name_Of_Source_File Path_And_File_Name_Of_Destination
(For example, copy E:\temp\jscript.dll E:\windows\system32\jscript.dll”