Vista system cleaning garbage

  

Today, Vista's system environment variables have been studied, and the batch script that was previously circulated on the network has been modified, and there is a system garbage batch cleaning process that can be used by this Windows Vista system.

@echo offtitle Windows Vista system garbage cleanup batch color 2Eecho Windows Vista operating system will generate quite a lot of junk files during installation and use, including temporary files (such as: *.tmp, *._mp) , log files (*.log), temporary help files (*.gid), disk check files (*.chk), temporary backup files (such as: *.old, *.bak), and other temporary files. Especially if a section Time does not clean up IE's temporary folder "Temporary Internet Files", which cache files sometimes take up hundreds of MB of disk space. These junk files not only waste valuable disk space, but also make the system run slow as a snail To this end, Pando studied the new system environment variables in Windows Vista and modified the For Windows XP scripts on the network to make them available for the Windows Vista operating system. This batch script will automatically clean up the useless junk files on your computer, never involving important files in the system, please feel free to use! Echo ------------------------------------------------- -------------------------------echo To start system cleanup pause cls@echo off del /f /s /q % Systemdrive%\\*.tmpdel /f /s /q %systemdrive%\\*._mpdel /f /s /q %systemdrive%\\*.logdel /f /s /q %systemdrive%\\*.giddel /f /s /q %systemdrive%\\*.chkdel /f /s /q %systemdrive%\\*.olddel /f /s /q %windir%\\*.bakdel /f /s /q %windir%\\prefetch\\*.*rd /s /q %windir%\\temp & md %windir%\\tempdel /f /s /q "%appdata%\\Microsoft\\Windows\\cookies\\*.*"del /f /s /q "%userprofile%\\ Local Settings\\Temporary Internet Files\\*.*"del /f /s /q "%userprofile%\\Local Settings\\Temp\\*.*"rd /s /q "%userprofile%\\Local Settings\\Temp\\" & Md "%userprofile%\\Local Settings\\Temp\\"del /f /s /q "%appdata%\\Microsoft\\Windows\\Recent\\*.*"@echo off clscolor 2Aecho ----------- -------------------------------------------------- ------------------- Garbage cleanup in the Vista system completes echo ----------------------- -------------------------------------------------- -------echo want to quit paus e

Copyright © Windows knowledge All Rights Reserved