These days, I suddenly found that there was only 4 GB space left for the system drive letter in win7, and found that there was too little space, so I wanted to clear some System junk files.
As the saying goes, there are already many System Tools under Win, such as what 360, QQ doctor, and Windows optimization master. However, these tools will be useful
To clear temporary files, such as STEP 7 project, winccflexible, wincc other industrial control software with temp, TMP suffix files are also cleared, this way
Therefore, it is necessary to build your own cleanup tool.
Below is how to clear the Chrome browser's batch files under Win 7:
@ Echo Off
:: Display batch title name
Title chrome cleanup of junk files
Echo **************************************** *************
Echo *
Echo *
Echo Welcome to Chrome's spam cleanup Tool
Echo Volcanol
Echo Version: v0.1
Echo System date: % Date %
Echo System Time: % Time %
Echo *
Echo *
Echo **************************************** *************
Echo *
Echo *
:: Obtain login user information and system information
Echo Your current login user is: % username %
Echo *
Echo Your current operating system platform is: % OS %
Echo *
Echo Your current operating system drive is: % systemdrive %
Echo *
Echo Your current computer CPU core is: % number_of_processors %
Echo *
Echo Your current computer CPU architecture is: % processor_architecture %
Echo *
Echo Your current computer CPU platform is: % processor_identifier %
Echo *
Echo Your current computer CPU level is: % processor_level %
Echo *
Echo Your current CPU core version is: % processor_revision %
Echo *
Set /P goon = Press Y/y to continue. Other keys Exit:
:: When a multi-character tag is used, the following must be added before the tag of the GOTO statement:
If "% Goon %" = "Y" Goto : Continuebat
If "% Goon %" = "Y" Goto : Continuebat
Goto : Endbat
: Continuebat
Pause > Nil
:: I don't know why I can't use the CD command to switch the drive letter.
C:
CD % USERPROFILE %
CD % USERPROFILE % \ appdata \ Local \ google \ chrome \ "User Data" \ Default \ Cache
Dir
Set /P Todel = "do you want to clear the junk files in this path? (Y/n )"
If "% Todel %" = "Y" Goto : Delfiles
If "% Todel %" = "Y" Goto : Delfiles
If "% Todel %" = "N" Goto : Endbat
If "% Todel %" = "N" Goto : Endbat
: Delfiles
Set /P Todel = "are you sure you want to clear the files in this path? (Y/n )"
If "% Todel %" = "Y" Goto : Delfile
If "% Todel %" = "Y" Goto : Delfile
If "% Todel %" = "N" Goto : Endbat
If "% Todel %" = "N"Goto : Endbat
: Delfile
Del *.*
Echo *
Echo *
Echo ****************************************
Echo *
Echo The junk file has been cleared.
Echo Thank you!
Echo Volcanol
Echo *
Pause
Goto : EOF
Echo**************************************** *
: Endbat
Echo****************************************
Echo*
EchoThis time you have not cleared the spam file. To clear the spam file, please run thisProgram
EchoThank you!
EchoVolcanol
Echo*
Echo**************************************** *
Pause
Usage: copy the file to notepad, change the file name extension to. BAT (the display extension must be enabled), and then run.
I wanted to write a seriesArticleBut I found that Google, Baidu, and yandex had a lot of such articles, and the idea was dispelled. It is estimated that there are many
No one knows that the batchfile exists (I am referring to a computer cainiao similar to me ).