Open an elevated command prompt. To do this, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as administrator. If you are prompted for an administrator password or for a confirmation, type the password, or click Allow.
Type the following command, and then press ENTER:
The sfc /scannow command scans all protected system files and replaces incorrect versions with correct Microsoft versions.
How to use the System File Checker tool to troubleshoot missing or corrupted system files on Windows Vista or on Windows 7
Also try running a Check disk on the computer.
Check a drive for errors
How many files do you have in that folder there is a file number limit that error number applies to.