Patent ID: 9535781
Date: 2017-01-03
CPC Classifications: G06F

Claim:
1. A computer-implemented method for repairing a system file, comprising: detecting, by a processor, a corrupted system file in an operating system; sending, by the processor, identification information of the operating system and an identifier of the corrupted system file to a server with system files of the operating system, wherein the identification information of the operating system comprises language pack information of the operating system, and the identifier of the corrupted system file comprises a name of the corrupted system file; receiving, by the processor, an integrity identifier of an intact system file to be used in repairing the corrupted system file, wherein the integrity identifier of the intact system file has a Hash value obtained by performing a Hash operation on the intact system file, and the intact system file is determined by the server according to the identification information of the operating system and the identifier of the corrupted system file; verifying, by the processor, the received integrity identifier with a locally stored integrity identifier of the corrupted system file; and if the received integrity identifier passes the verification, obtaining, from the server, the intact system file corresponding to the verified integrity identifier and repairing the corrupted system file with the obtained intact system file.