Computer system garbage cleaning method and device

文档序号:923460 发布日期:2021-03-02 浏览:2次 中文

阅读说明:本技术 一种计算机系统垃圾清理方法及装置 (Computer system garbage cleaning method and device ) 是由 周军 于 2020-12-01 设计创作,主要内容包括:本发明公开了一种计算机系统垃圾清理方法及装置,所述方法包括下述步骤:在计算机启动后,进行自检、对软件程序进行初始化并载入清理执行环境;在操作系统启动前,调用清理软件对操作系统进行检测;当发现垃圾或检测到操作系统启动文件遭到破坏,挂起操作系统,调用清理软件对操作系统进行清理。本发明在操作系统启动之前,调用清理软件进行垃圾的检测以及清理,不需要在操作系统垃圾较多时,开机手动清理,另外,在清理完成后,当检测到操作系统的启动文件被破坏时,调用清理软件恢复被破坏的启动文件,极大地提高了清理垃圾的效率。(The invention discloses a computer system garbage cleaning method and a device, wherein the method comprises the following steps: after the computer is started, self-checking is carried out, a software program is initialized, and a cleaning execution environment is loaded; before an operating system is started, calling cleaning software to detect the operating system; and when the garbage is found or the starting file of the operating system is detected to be damaged, suspending the operating system and calling cleaning software to clean the operating system. In addition, after the cleaning is finished, when the damaged starting file of the operating system is detected, the cleaning software is called to recover the damaged starting file, so that the efficiency of cleaning the garbage is greatly improved.)

1. A computer system garbage cleaning method and device are characterized in that: the method comprises the following steps:

after the computer is started, self-checking is carried out, a software program is initialized, and a cleaning execution environment is loaded;

before an operating system is started, calling cleaning software to detect the operating system;

and when the garbage is found or the starting file of the operating system is detected to be damaged, suspending the operating system and calling cleaning software to clean the operating system.

2. The method of claim 1, wherein after the steps of suspending the operating system, invoking clean-up software to clean up the operating system when garbage is found or the operating system boot file is detected to be corrupted, the method further comprises the steps of:

and after the cleaning is finished, when the damage of the starting file of the operating system is detected, calling cleaning software to recover the damaged starting file.

3. The method of claim 1, wherein in the steps of suspending the operating system and invoking clean-up software to clean the operating system when garbage is found or the operating system boot file is detected to be corrupted, the method further comprises the steps of, before the step of invoking clean-up software to clean the operating system:

and the control cleaning software is connected with the network monitoring garbage warehouse, and when a new garbage warehouse is found, the garbage warehouse is updated.

4. The method of claim 1, wherein the cleaning software is stored in a protected partition of a hard disk.

5. A computer cleaning apparatus, the apparatus comprising:

the initialization module is used for carrying out self-checking, initializing the hardware equipment and loading a drive execution environment after the computer is started;

the garbage detection module is used for calling cleaning software to detect the operating system before the operating system is started;

and the cleaning module is used for suspending the operating system and calling cleaning software to clean the operating system when finding rubbish or detecting that the starting file of the operating system is damaged.

6. The apparatus of claim 5, wherein the apparatus further comprises:

and the starting recovery module is used for calling the cleaning software to recover the damaged starting file when detecting that the starting file of the operating system is damaged after cleaning is finished.

7. The apparatus of claim 5, wherein the apparatus further comprises:

and the garbage base updating module is used for controlling the cleaning software to be connected with the network monitoring garbage base, and updating the garbage base when a new garbage base is found.

Technical Field

The invention belongs to the technical field of computer program processing, and particularly relates to a computer system garbage cleaning method and device.

Background

Currently, with the development of electronic and communication technologies, terminals such as computers are widely used. The available resources in the terminal are limited, and sometimes a user is required to manually clean some garbage or perform garbage cleaning through a garbage cleaning application program. However, sometimes the user needs to click a plurality of operation buttons to complete garbage cleaning, and the operation is cumbersome.

Disclosure of Invention

Technical problem to be solved

In view of the deficiencies of the prior art, the present invention provides a computer system garbage cleaning method and apparatus to solve the problems set forth in the background art.

(II) technical scheme

In order to achieve the purpose, the invention is realized by the following technical scheme: the method comprises the following steps:

after the computer is started, self-checking is carried out, a software program is initialized, and a cleaning execution environment is loaded;

before an operating system is started, calling cleaning software to detect the operating system;

and when the garbage is found or the starting file of the operating system is detected to be damaged, suspending the operating system and calling cleaning software to clean the operating system.

Preferably, after the steps of suspending the operating system and calling cleaning software to clean the operating system when the garbage is found or the operating system boot file is detected to be damaged, the method further includes the following steps:

and after the cleaning is finished, when the damage of the starting file of the operating system is detected, calling cleaning software to recover the damaged starting file.

Preferably, in the step of suspending the operating system and calling the cleaning software to clean the operating system when it is found that the operating system boot file is damaged or detected, before the step of calling the cleaning software to clean the operating system, the method further includes the following steps:

and the control cleaning software is connected with the network monitoring garbage warehouse, and when a new garbage warehouse is found, the garbage warehouse is updated.

Preferably, the cleaning software is stored in a protected partition of the hard disk.

Preferably, the apparatus comprises:

the initialization module is used for carrying out self-checking, initializing the hardware equipment and loading a drive execution environment after the computer is started;

the garbage detection module is used for calling cleaning software to detect the operating system before the operating system is started;

and the cleaning module is used for suspending the operating system and calling cleaning software to clean the operating system when finding rubbish or detecting that the starting file of the operating system is damaged.

Preferably, the apparatus further comprises:

and the starting recovery module is used for calling the cleaning software to recover the damaged starting file when detecting that the starting file of the operating system is damaged after cleaning is finished.

Preferably, the apparatus further comprises:

and the garbage base updating module is used for controlling the cleaning software to be connected with the network monitoring garbage base, and updating the garbage base when a new garbage base is found.

(III) advantageous effects

In the invention, before the operating system is started, the cleaning software is called to detect and clean the garbage, and the manual cleaning during starting is not needed when the operating system has more garbage.

7页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:固态硬盘中控制参数的获取方法、存储介质和电子装置

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类