The program "" corresponding to WSH is a script language interpreter, which makes the script execute, just like batch processing. In the WSH script environment, some objects are predefined. Through its own built-in objects, you can achieve functions such as obtaining environment variables, creating shortcuts, loading programs, reading and writing registry. This article is such a specific application example.
2) The command "" means to generate a primary key or generate a key value in the registry;
3) The command "" is to delete the primary key or key value;
4) The difference between a primary key and a key value is that there is "\" after the primary key name, and there is no "\" in the key value;
5) "HKLM" represents HKEY_LOCAL_MACHINE primary key; "HKCU" represents HKEY_CURRENT_USER primary key.
After you know that VBS has modified the format of the registry, you can delete and modify the registry. Of course, it is best to back up the registry before you do these operations.
2. The batch file is as follows:
@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\*.*
The first behavior of this batch processing deletes the content of the temporary folder; the second and third lines, deletes the content left by the IE browser after opening the web page; every four behaviors, deletes the content in the "Start" menu "Document"; the fifth line, deletes the content in the trash can; the sixth line, deletes the sweet cake.
Copy the script language file and batch file into the C:\windows folder, double-click the file to run it, and every time you start the computer, you will automatically clean up the registry and junk folders.
3. Others
In fact, the above batch processing functions can be realized directly in script language. However, during the running process of the script file, it is easy to encounter such a prompt message: Windows Scripting Host script execution error, or: "Category: Microsoft VBScipt running error, indicating: There is no permission." Such an error aborts the execution of the script program. The reason for these problems is that software related to script processing is installed, such as the script language editing program installed for Office 2000, and abnormal shutdown.
The specific methods are as follows:
Dim fso
Set fso = CreateObject("")
("C:\WINDOWS\Cookies\*.*"),True
("C:\WINDOWS\Cookies\*.*"),True
("C:\WINDOWS\History\*.*"),True
("C:\WINDOWS\History\*.*"),True
("C:\WINDOWS\Temp\*.*"),True
("C:\WINDOWS\Temp\*.*"),True
("C:\RECYCLED\*.*"),True
("C:\RECYCLED\*.*"),True
("C:\WINDOWS\Temporary Internet Files\*.*"),True
("C:\WINDOWS\Temporary Internet Files\*.*"),True
You just need to attach the above content to the previous document. Interested readers can try it. In the future, after operating on a public computer, you will no longer be afraid of secret leakage
Previous page12Read the full text