Windows usage record automatically cleared

  

First, let XP automatically clean up the page file when shutting down

When using the computer, some Word documents or open web pages will be loaded into the memory, and in order to save memory space, Windows will be different. The file is placed in the system's page file, and the page file is like a temporary repository. Microsoft provides a way to automatically clean up page files when you shut down Windows XP. By default this feature is turned off. Below we will show you how to enable this feature. However, it should be noted that after this feature is enabled, the shutdown time will be longer because the cleaning operation is performed. (Related article: XP network can not solve the problem of mutual access)

Operation steps

1. Click the "Start" menu, click "Run", enter "Regedit" in the dialog box ", then click "OK" to run the "Registry Editor". If you are not familiar with the registry knowledge, you can look at it here.

2. Navigate to "HKEY_LOCAL_MACHINESYSTEMCurrentControlSetControlSession ManagerMemory Management" and double-click "ClearPageFileAtShutdown" in the list on the right.

3. In the pop-up "Edit DWORD" value dialog box, select the base number to be hexadecimal, and change the "Value Data" on the left to 1, which enables automatic cleaning of the page file when shutting down. Features.

4. Restart the computer for the changes to take effect

Second, clear the IE temporary files

Windows or applications usually generate temporary files at runtime, although some temporary files It will be automatically deleted when Windows or the application exits normally. However, due to the instability of Windows or the imperfect function of the program, temporary files often become "missing fish". In this way, as time goes by, the temporary files gradually accumulate, which not only takes up the valuable hard disk space of the user, but also greatly affects the operating efficiency of the system. Below, the author gives two methods on how to effectively delete temporary files, hoping to give you some inspiration.

Method 1: Open the "Start" menu, select "Search → File or Folder", and then enter "*.tmp" in the "File or Folder Name to Search" column of the dialog box ( Tmp is the suffix name of the temporary file. Select "Local Hard Drive" from the drop-down list in the "Search Range" column of the dialog box, click "Search Options", check "Advanced Options" and the "Search Subs" under it. "Folder" item, and finally click the "Search Now" button. After the search is completed, switch to the "Search Results" page, press the "Ctrl+A" key combination or select the "Edit → Select All" item in the toolbar menu to select all files, press the "Del" key or select the toolbar menu. The "File → Delete" item will delete all temporary files with a .tmp suffix on the user's computer at one time.

Method 2: In order to speed up the access, IE will store the content of the webpages that have been viewed in the Temporary Internet Files folder. If we don't want others to peek into our secrets from here, we can use the shutdown script to let the system automatically clean up before shutting down. Here is a description of the specific operations (Windows XP as an example).

In the "C:\\Windows\\System32\\GroupPolicy\\Machine\\Scripts\\Shutdown" directory, create a new batch file Cleanup.bat, the content can be written as needed. The command to clear the IE temporary file is "DEL/Q/S "C:\\Documents and Settings\\<username>\\Local Settings\\Temporary Internet Files"". The parameter /Q indicates that the quiet mode is used, that is, when the global wildcard is deleted, no confirmation is required; the parameter /S indicates that the file is deleted from all subdirectories.

Click "Start" "Run", enter "Gpedit.msc" in the run command box to open the Group Policy window. In the console tree pane on the left, expand the Computer Configuration, Windows Settings, Scripts (Startup/Shutdown) node, double-click the Shutdown item in the right details pane, and pop-up Click the "Add" button in the Properties dialog to add Cleanup.bat as a new computer shutdown script. After the setup is complete, exit the Group Policy window and restart your computer.

Method 3: Open the "Start" menu, select "Program → MS-DOS", edit the Autoexec.bat file with a plain text editor (ie run the command in DOS mode: "edit autoexec.exe" In this automatically running batch file, the environment variables temp and tmp define the storage location of temporary files during Windows running. The default location is "\\windows\\temp" folder).

The original Autoexec.bat file is:

SET COMSPEC=C:\\WINDOWS\\COMMAND.COM

SET windir=C:\\WINDOWS

SET Winbootdir=C:\\WINDOWS

SET PATH=C:\\WINDOWS;C:\\WINDOWS\\COMMAND

SET PROMPT=$p$g

SET TEMP=c: \\windows\\temp

SET TMP=c:\\windows\\temp

The edited Autoexec.bat file is:

SET COMSPEC=C:\\WINDOWS\\COMMAND .COM

SET windir=C:\\WINDOWS

SET winbootdir=C:\\WINDOWS

SET PATH=C:\\WINDOWS;C:\\WINDOWS\\COMMAND

SET PROMPT=$p$g

deltree /Y x:\\temp (delete the temporary file folder, where x is the drive where the folder is located)

md x: \\temp (create a temporary file folder, X is your drive letter)

SET TEMP=d:\\temp

SET TMP=d:\\temp

File Editing Save it when you are done. After the above settings, the user will automatically delete the temporary file each time the computer is started.

Copyright © Windows knowledge All Rights Reserved