Wednesday, November 14, 2012

How to Fix a Corrupt amp; Unreadable File


1. Click 'Start' and click 'All Programs.'
2. Select 'Accessories' and right-click 'Command Prompt.' Click 'Run as administrator.'
3. Type 'sfc /scannow' at the prompt and press 'Enter.' Allow the scan to detect and fix the corrupt and unreadable files.
4. 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.txtedit sfcdetails.txtA log will appear that contains an entry for the file(s) that did not repair.
5. 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_FilePath_And_File_Name_Of_Destination(For example, copy E:\temp\jscript.dll E:\windows\system32\jscript.dll'