2008年3月9日星期日

In windows system, put in order systematic rubbish

All know that Windows has the bad "bad habit" of record operator privacy. If: When opening text file and glancing over the files such as picture, in "beginning" - "document", leave the filename that you have seen or have edited; When editing file and installation to unite many game or other installation softwares , in windows \ temp, leave the installation file that returns from downloading and some files that temporary transition uses; Net if you use the browser of Internet Explorer, this IE browser returns meeting habit land, in address column, leaves the website address that you have entered and afterwards birth " network really name ", and in "history", leave the webpage that you have glanced over; Even when delete file, Microsoft has also not forgotten to leave what to you, you go to " rubbish barrel" to see , He He.

It is convenient that above-mentioned these give to use person and have brought , is next enter again , operate again have offered the channel of shortcut convenience, but at the same time also expose some own matters that on computer do when other computers in front of use person. The existence of these above-mentioned problems, sometimes and not is computer use person hopes the result of seeing - - - - the operating quilt of self in computer others grasp has to be perfectly clear. Therefore in the process of using Windows having "footmark" this one of how to leave in cleaning computer throughout the problem that makes head painful ( as have in some softwares to list recent use the function of filename list of error, also belong to can leave "footmark" is a kind of, but close operation since it may install in software, not when the discussion of this text ).

Those is using the footmark left in WINDOWS process

"rubbish"

Windows lays the place of rubbish have

The rubbish in file has: "beginning" - the rubbish in " document " lay , is in C: Windows Recent file in; Install program , editor file the temporary file of arising lays is in c: Windows temp file in; When deleting file, throw to go the thing in rubbish barrel in C: The file of \ RECYCLED( implicit ) is put; When you get on the Internet to glance over website , Windows meeting is in C: WINDOWS History and C: The Windows file of Temporary Internet Files in the webpage that you have seen under reservation; Not go through Yi, Microsoft can still take some cookie from net to you, sweet cake is put in C: WINDOWS Cookies in.

The rubbish in registered table has: The website

In actually, the registered table of Windows is large rubbish storehouse, head the rubbish put , when yourself has time , seeks. It is 1 or 2 that this text points out only here and aim at guiding you to comprehend by analogy , know how to clear away the rubbish in registered table.

VBS script file and batch file

Realizing this function have used two files

Regzzc.bat.

File and filename are VBS

Dim WSHShell

Set WSHShell=WScript.CreateObject( "WScript.Shell")

WSHShell, RegWrite " HKLM \ Software \ Microsoft \ Windows \ CurrentVersion

Run regzzc ", "regzzc.vbs"

WSHShell, RegWrite " HKLM \ Software \ Microsoft \ Windows \ CurrentVersion

RunOnce deldel ", "regzzc.bat"

WSHShell, RegWrite " HKCU \ Software \ Microsoft \ Internet

Explorer \ Main \ Start Page ", " about:

WSHShell, RegWrite " HKCU \ Software \ Microsoft \ Internet

Explorer \ TypedURLs \ ",

WSHShell, RegDelete " HKCU \ Software \ Microsoft \ Internet

Explorer \ TypedURLs

WSHShell, RegWrite " HKCU \ Software \ Microsoft \ Internet

Explorer \ TypedURLs \ ",

WSHShell, " RegWrite HKCU \ Software \3721\ InputCns

WSHShell, " RegDelete HKCU \ Software \3721\ InputCns

WSHShell, " RegWrite HKCU \ Software \3721\ InputCns

This former script 2 lines is definition

3th is all right , 4th behavior adds computer in registered table to start

5th behavior reduction IE beginning page is " about: Blank "; It is 6 or 7th , 8 lines is , clearing away IE browser address column the webpage address left and have been glanced over is well-known; It is 9th , 10 and 11 lines are , it is really well-known to clear away the network in IE address column.

Here, reader need to grasp the following: 1 ), order "WSHShell.RegWrite" to express that in registered table, generation major key or generation key worths; 2 ), it is to delete major key or key value to order "WSHShell.RegDelete"; 3 ), the differences of key value and major key have " " ,Jian Zhi Mei You "" after lying in the name of major key; 4 ), "HKLM" represents HKEY_LOCAL_MACHINE major key; "HKCU" represents HKEY_CURRENT_USER major key.

Know that it is rear that VBS modifies the form of registered table, registered table takes the charge of you to revise , is natural, before you do these operations, best first spare registration table.

Batch file and filename

@deltree-y c: Windows temp \*.*

@deltree-y c: " windows Temporary Internet Files " \*.*

@deltree-y c: Windows History \*.*

@deltree-y C: Windows Recent \*.*

@deltree-y C: RECYCLED *.*

@deltree-y C: WINDOWS Cookies \*.*

This batch processing is the first line of to delete the content of temporary file; It is second , 3 lines, delete the remained next content after IE browser opens webpage; Each 4 lines is , in delete " beginning" " "-" document " content; It is 5th to be all right , deletes the content in rubbish barrel; It is 6th to be all right , deletes cookie.

The installation

Go to script language file and the duplication of batch file C: In the file of \ windows, click double regzzc, vbs file runs it , will be completed when starting computer afterwards every time voluntarily for the cleaning of registered table and rubbish file.

The method that this text teaches

Foreign language can actually directly also realize the function of above-mentioned batch processing in script language , is easy to meet " the script conducted mistake of windows Scripting Host -" or be merely in script file runs process: " kind: The operation mistake of Microsoft VBScipt explains: Have no limits of authority. " terminate conducted script program. Producing the reason of these problems is , installing have the software concerning script handling, as the script language editor that has installed OFFICE2000; Is not normal barrier machine.

Specific

Dim fso

Set fso=CreateObject( "Scripting.FileSystemObject")

Fso.DeleteFolder( " C: WINDOWS Cookies \*.* "),

Fso.DeleteFile( " C: WINDOWS Cookies \*.* "),

Fso.DeleteFolder( " C: WINDOWS History \*.* "),

Fso.DeleteFile( " C: WINDOWS History \*.* "),

Fso.DeleteFolder( " C: WINDOWS Temp \*.* "),

Fso.DeleteFile( " C: WINDOWS Temp \*.* "),

Fso.DeleteFolder( " C: RECYCLED *.* "), True

Fso.DeleteFile( " C: RECYCLED *.* "), True

Fso.DeleteFolder( " C: WINDOWS Temporary Internet Files \*.* "),

Fso.DeleteFile( " C: WINDOWS Temporary Internet Files \*.* "),

Reader need to attach above content

没有评论: