Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Embodiment mono-
The embodiment of the present invention provides a kind of method of clearing up desktop, and referring to Fig. 1, the method comprises:
101: obtain desktop icons file for clearance.
102: according to desktop icons file clean-up configuration information, obtain cleaning desktop icons file instruction for clearance.
103: according to cleaning desktop icons file instruction for clearance, clear up desktop icons file for clearance.
Further, after obtaining desktop icons file for clearance, also comprise:
Desktop icons file for clearance is added in desktop icons file set for clearance.
Further, obtain desktop icons file for clearance, desktop icons file for clearance added in desktop icons file set for clearance, comprising:
Every default time interval, check desktop, judge on desktop, whether there is the desktop icons file that meets default cleaning condition;
If existed, will on desktop, meet the desktop icons file of default cleaning condition, add in desktop icons file set for clearance.
Further, wherein, default desktop icons file clean-up condition, at least comprises below a kind of:
The size of the file that desktop icons file is corresponding is less than or equal to default byte number; The file that desktop icons file is corresponding cannot be opened; The size of the file that desktop icons file is corresponding equals default byte number, the file that desktop icons file is corresponding be not used interval greater than default time interval threshold value, and file corresponding to desktop icons file is stored in default drive; The content of the file that the content of the file that this desktop icons file is corresponding is corresponding with another desktop icons file is identical; Desktop icons file is compressed package, and has non-compressed file or the non-compressed document file corresponding with this compressed package; There is potential safety hazard in the file that desktop icons file is corresponding.
Further, according to desktop icons file clean-up configuration information, obtain cleaning desktop icons file instruction for clearance, comprising:
Fileinfo corresponding to inquiry desktop icons file, obtains desktop icons file clean-up configuration information;
According to desktop icons file clean-up configuration information, obtain cleaning desktop icons file instruction for clearance.
Further, desktop icons file clean-up configuration information, comprising:
Delete, hide, sort out or unloading.
Preferably, wherein, desktop icons file clean-up configuration information is set according to desktop icons file type, and different desktop icons file types is set different desktop icons file clean-up configuration informations;
Desktop icons file type comprises: desktop icons class, multimedia file class (including but not limited to audio frequency, video, picture etc.), text class, file class and/or executable file class etc.
For desktop icons class, can set deletion manner of cleaning up; For multimedia file class, can set hiding manner of cleaning up; For text class, can set deletion manner of cleaning up; For file class, can set classification manner of cleaning up; For executable file class, can set unloading manner of cleaning up.
The method of the cleaning desktop described in the embodiment of the present invention, obtain desktop icons file for clearance, according to desktop icons file clean-up configuration information, obtain cleaning desktop icons file instruction for clearance, according to cleaning desktop icons file instruction for clearance, Automatic clearance desktop icons file for clearance, can automatically carry out the cleaning of desktop icons file, can improve the efficiency of cleaning desktop icons file.Can to the desktop icons file on desktop, once clear up every a default time interval, can automatically carry out the cleaning of desktop icons file on time, can improve further the efficiency of cleaning desktop icons file.Default cleaning condition comprises that the size of desktop icons file is less than or equal to default byte number, and desktop icons file cannot be opened etc., and Rule of judgment is many, and user exactly can feed the desktop icons file reverse of needs cleaning.It can be to delete, hide, sort out or unloading that desktop icons file is cleared up, and manner of cleaning up is versatile and flexible.
Embodiment bis-
The embodiment of the present invention provides a kind of method of clearing up desktop, and referring to Fig. 2, the method comprises:
201: every a default time interval, check desktop, judge on desktop whether have the desktop icons file that meets default cleaning condition, if existed, carry out 202; Otherwise, carry out 204.
Wherein, the default time interval can arrange flexibly according to practical application situation, as being set to 1 day, 1 week, 1 month etc., this is not specifically limited.Every a default time interval, check desktop, every a default time interval, automatically carry out the traversal of a desktop icons file.
Wherein, desktop icons file comprises: desktop icons, multimedia file (including but not limited to audio frequency, video, picture etc.), text, file, executable file etc.
Wherein, default desktop icons file clean-up condition comprises:
The size of the file that desktop icons file is corresponding is less than or equal to default byte number, wherein, can be set to a fixed value according to the default byte number of practical situations, maybe can be set to the value that can be adjusted according to the concrete needs of oneself by user.As default byte number is set to 0KB, the desktop icons file that needs cleaning is that size is the desktop icons file of 0KB, and the user files such as the file of 0KB size, document, file can be considered to discarded record, these often user because a variety of causes has been revised size, but but forget the file of having deleted.
The file that desktop icons file is corresponding cannot be opened, the desktop icons file that cannot use mainly comprises document damaged and that cannot recover, by unsafe file that malicious act infected, because a variety of causes (for example deleted) causes lnk (link, the shortcut) file on cannot be corresponding with executable program etc.
The file that desktop icons file is corresponding be not used interval greater than default time interval threshold value, as a text document of not revised by user for a long time.
The size of desktop icons file equals default byte number, the file that desktop icons file is corresponding be not used interval greater than default time interval threshold value, and the file that desktop icons file is corresponding is stored in default drive, for some specific drive excessive file that was not used for a long time and took up space, such as some long-time obsolete large software under system disk, these softwares carry during user's assembling system often to be installed or user's mistake is installed, and these are also in the scope of cleaning.
The content same desktop icon file desktop icons file of the file that the content of the file that this desktop icons file is corresponding is corresponding with another desktop icons file, for example point to same shortcut that can executive software, copy document etc., these be all often user once Interim use but after there is no again a used file.
There is potential safety hazard in the file that desktop icons file is corresponding, as by computer virus infection etc.
Desktop icons file is compressed package, and has non-compressed file or the non-compressed document file corresponding with this compressed package.
It should be noted that, in practical application, can will meet the desktop icons file of the desktop icons file of above-mentioned any situation as needs cleaning; Maybe above-mentioned various situations can be combined, will meet the desktop icons file of the desktop icons file of any 2 kinds or two or more combined situation as needs cleaning.
And, judge that on desktop, whether existing computing machine that the desktop icons file that meets default cleaning condition, the computing machine that can use by user judge, can judge by high in the clouds computing machine, can use by user and third party's fail-safe software to combine judges, maybe can be combined and be judged by high in the clouds computing machine and third party's fail-safe software.
202: will meet the desktop icons file of default cleaning condition, add in desktop icons file set for clearance, then carry out 203.
Wherein, desktop icons file set for clearance is for depositing the desktop icons file that needs cleaning on the desktop checking out, and it is to need cleaning that the desktop icons file in desktop icons file set for clearance is defaulted as.Desktop icons file set for clearance can be realized by forms such as form, pictures, can arrange flexibly according to practical situations, and this is not specifically limited.
203: show desktop icons file set for clearance, then carry out 205.
Particularly, while showing desktop icons file set for clearance, can adopt the friendly interactive interface form such as menu, window.And, for the ease of checking, to save time, can classify to desktop icons file for clearance (as classified according to size of desktop icons file name, desktop icons file etc.), in desktop icons file set for clearance, a plurality of desktop icons files be deposited according to type.A plurality of desktop icons files are left in desktop icons file set for clearance according to type, make user can be more clearly visible the desktop icons file of the needs cleaning in desktop icons file set for clearance, also make user find quickly the desktop icons file that oneself may not think cleaning according to type, thereby the desktop icons file of not thinking cleaning is removed from desktop icons file set for clearance.
204: show prompting message, then finish.
Wherein, prompting message can be " automatically your desktop icons file is scanned, do not find to need the desktop icons file of cleaning ", or other similar prompting messages, can arrange according to concrete applicable cases, and this is not limited.
And, it should be noted that, for fear of user is caused to interference, on judgement desktop, do not meet after the desktop icons file of default cleaning condition, can not carry out any operation, directly finish.
205: obtain the instruction that the desktop icons file in desktop icons file set for clearance is cleared up.
Particularly, can be according to the type of desktop icons file, automatically by the concrete operations information that desktop icons file is cleared up, be arranged in the desktop icons file clean-up configuration information in the fileinfo attribute of desktop icons file, make to inquire about the fileinfo that desktop icons file is corresponding, obtain desktop icons file clean-up configuration information; According to desktop icons file clean-up configuration information, obtain cleaning desktop icons file instruction for clearance.And, desktop icons file clean-up configuration information option can be set in advance in fileinfo attribute, desktop icons file clean-up configuration information comprises: delete, hide, classification or unloading etc.Preferably, wherein, desktop icons file clean-up configuration information is set according to desktop icons file type, and different desktop icons types is set different desktop icons file clean-up configuration informations; Desktop icons file type comprises: desktop icons class, multimedia file class (including but not limited to audio frequency, video, picture etc.), text class, file class, executable file class etc.For desktop icons class, can set deletion manner of cleaning up; For multimedia file class, can set hiding manner of cleaning up; For text class, can set the manner of cleaning up of deletion; For file class, can set the manner of cleaning up of classification; For executable file class, can set the manner of cleaning up of unloading.
Particularly, it is to need cleaning that desktop icons file in desktop icons file set for clearance is defaulted as, when user does not want to clear up certain the desktop icons file in desktop icons file set for clearance, certain desktop icons file can be removed from desktop icons file set for clearance, and then click the instruction that the transmission of corresponding cleaning button is cleared up the desktop icons file in desktop icons file set for clearance.
206: according to the instruction that the desktop icons file in desktop icons file set for clearance is cleared up, the desktop icons file in desktop icons file set for clearance is cleared up, then finished.
Particularly, desktop icons file in desktop icons file set for clearance is cleared up to (delete, hide, classification or unloading etc.), can be that the desktop icons file in desktop icons file set for clearance is left in a file of appointment, can be that the desktop icons file in desktop icons file set for clearance is deposited in a region of appointment on the table, can be also to delete or unload desktop icons file in desktop icons file set for clearance etc.And, when a desktop icons file of unloading, can make the following judgment particularly: judge whether this desktop icons file has corresponding Uninstaller, if had, unload this desktop icons file, otherwise, directly delete this desktop icons file.
It should be noted that, can also take the form of menu as user arranges an entrance, allow the user can be at any time by the method cleaning desktop icons file of the embodiment of the present invention.
The method of the cleaning desktop described in the embodiment of the present invention, can the desktop icons file of default cleaning condition will be met on desktop, automatic powder adding is added in desktop icons file set for clearance, automatic Display desktop icons file set for clearance, and after getting the instruction that the desktop icons file in desktop icons file set for clearance is cleared up, desktop icons file in desktop icons file set for clearance is cleared up automatically, can automatically carry out the cleaning of desktop icons file, can improve the efficiency of cleaning desktop icons file.Can to the desktop icons file on desktop, once clear up every a default time interval, can automatically carry out the cleaning of desktop icons file on time, can improve further the efficiency of cleaning desktop icons file.Can show desktop icons file set for clearance with the close friends' such as window interactive interface form, exhibition method is simple and convenient.Default cleaning condition comprises that the size of desktop icons file is less than or equal to default byte number, and desktop icons file cannot be opened etc., and Rule of judgment is many, and user exactly can feed the desktop icons file reverse of needs cleaning.It can be directly to delete or unloading, leave in a file of appointment or deposit in a region of appointment on the table that desktop icons file in desktop icons file set for clearance is cleared up, and manner of cleaning up is versatile and flexible.
Embodiment tri-
The embodiment of the present invention provides a kind of device of clearing up desktop, and referring to Fig. 3, this device comprises:
Iconfile acquisition module 301, for obtaining desktop icons file for clearance;
Cleaninginstruction acquisition module 302, for obtaining at iconfile acquisition module 301 after desktop icons file for clearance, according to desktop icons file clean-up configuration information, obtains cleaning desktop icons file instruction for clearance;
Cleaning module 303, for obtaining after cleaning desktop icons file instruction for clearance at cleaninginstruction acquisition module 302, according to cleaning desktop icons file instruction for clearance, clears up desktop icons file for clearance.
Further, referring to Fig. 4, this device also comprises:
Addmodule 304, for obtaining at iconfile acquisition module 301 after desktop icons file for clearance, desktop icons file for clearance is added in desktop icons file set for clearance.
Further, iconfile acquisition module 301 comprises:
Icon file acquiring unit, for checking desktop every default time interval, judges on desktop, whether there are the desktop icons that meet default cleaning condition;
Correspondingly, addingmodule 304 comprises:
Adding device, is to exist while meeting the desktop icons of default cleaning condition for the judged result when icon file acquiring unit, will on desktop, meet the desktop icons file of default cleaning condition, adds in desktop icons file set for clearance.
Further, default desktop icons file clean-up condition at least comprises below a kind of:
The size of the file that desktop icons file is corresponding is less than or equal to default byte number; The file that desktop icons file is corresponding cannot be opened; The size of the file that desktop icons file is corresponding equals default byte number, the file that desktop icons file is corresponding be not used interval greater than default time interval threshold value, and file corresponding to desktop icons file is stored in default drive; The content same desktop icon file desktop icons file of the file that the content of the file that desktop icons file is corresponding is corresponding with another desktop icons file; Desktop icons file is compressed package, and has non-compressed file or the non-compressed document file corresponding with this compressed package; There is potential safety hazard in the file that desktop icons file is corresponding.
Further, cleaninginstruction acquisition module 302 comprises:
Query unit, for obtaining at iconfile acquisition module 301 after desktop icons file for clearance, fileinfo corresponding to inquiry desktop icons file, obtains desktop icons file clean-up configuration information;
Acquiring unit, for obtaining in query unit after desktop icons file clean-up configuration information, according to desktop icons file clean-up configuration information, obtains cleaning desktop icons file instruction for clearance.
Further, desktop icons file clean-up configuration information, comprising:
Delete, hide, sort out or unloading.
The device of the cleaning desktop described in the embodiment of the present invention, obtain desktop icons file for clearance, according to desktop icons file clean-up configuration information, obtain cleaning desktop icons file instruction for clearance, according to cleaning desktop icons file instruction for clearance, Automatic clearance desktop icons file for clearance, can automatically carry out the cleaning of desktop icons file, can improve the efficiency of cleaning desktop icons file.Can to the desktop icons file on desktop, once clear up every a default time interval, can automatically carry out the cleaning of desktop icons file on time, can improve further the efficiency of cleaning desktop icons file.Default cleaning condition comprises that the size of desktop icons file is less than or equal to default byte number, and desktop icons file cannot be opened etc., and Rule of judgment is many, and user exactly can feed the desktop icons file reverse of needs cleaning.It can be to delete, hide, sort out or unloading that desktop icons file is cleared up, and manner of cleaning up is versatile and flexible.
The invention described above embodiment sequence number, just to describing, does not represent the quality of embodiment.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be ROM (read-only memory), disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.