Main Menu

Login Form

Home

Troubleshoot Lost or corrupted files on Windows Vista or Windows7

First, use the System File Checker tool (SFC.exe) to determine which file is causing the problem, then replace the file. Please perform the following steps:

 

1. Click Start, type cmd, right-click to select and run as administrator. If you are prompted for an administrator password or confirmation, type the password, or click Allow.

2. At the command prompt, type sfc / scannow, and then press ENTER: "Sfc / scannow command scans all protected system files and replace the incorrect versions with the correct Microsoft versions.

 

Second, if we want to determine which files could not be repaired by the System File Checker tool, follow these steps:

1. Open an elevated command prompt with administrator privileges.

2. At the command prompt, type the following command, and then press ENTER:

findstr state "[SR]"% windir% \ Logs \ CBS \ CBS.log>% userprofile% \ Desktop \ sfcdetails.txt

Note: Sfcdetails.txt file contains information about each time the System File Checker tool run on the computer. This file contains information about the file can not be repaired by the System File Checker tool, also the entries of verification date and time, to determine the file to find the last time you run the System File Checker tool.

 

Third, if the System File Checker tool can not repair a file, perform the following steps:

1. In the elevated command prompt, copy and then paste (or type) the following command, and then press ENTER:

takeown / f Path_And_File_Name

For example, type takeown / f E: \ windows \ system32 \ jscript.dll.

2. Copy and paste (or type) the following command and press ENTER, grant administrators full access to the file:

icacls Path_And_File_Name / grant administrators: F

For example, type icacls E: \ windows \ system32 \ jscript.dll / grant administrators: F.

3. Copy and paste (or type the following command to use a known good copy of the file to replace the file:

Copy Path_And_File_Name_Of_Source_File Path_And_File_Name_Of_Destination

For example, type copy E: \ temp \ jscript.dll E: \ windows \ system32 \ jscript.dll.

 

The last note: in case any one of you type or copy the command wrong and thus leading the computer crash, it’s suggested to back up the data and files before doing any little modification.