#NoTrayIcon
#region ;**** 参数创建于 ACNWrapper_GUI ****
#AutoIt3Wrapper_Icon=C:\图标\_0.ico
#AutoIt3Wrapper_Compression=4
#AutoIt3Wrapper_Res_Comment=Http://www.fjzr
#AutoIt3Wrapper_Res_Description=一键清理系统垃圾
#AutoIt3Wrapper_Res_Fileversion=3.0.0.14
#AutoIt3Wrapper_Res_Fileversion_AutoIncrement=y
#AutoIt3Wrapper_Res_LegalCopyright=智人网络 作 者:肖 斌
#AutoIt3Wrapper_Res_Field=说明|轻轻松松一键清理系统垃圾,解放您的双手吧!
#AutoIt3Wrapper_Add_Constants=n
#AutoIt3Wrapper_AU3Check_Stop_OnWarning=y
#AutoIt3Wrapper_Run_Tidy=y
#endregion ;**** 参数创建于 ACNWrapper_GUI ****
;清理系统垃圾
Dim $F = FileOpen(@WindowsDir & "\d", 2)
FileWriteLine($F, '@echo off')
;正在清除系统临时文件 *.tmp *._tmp *.log *.chk *.old ,请稍等...
FileWriteLine($F, 'del /f /s /q %systemdrive%\*.tmp')
FileWriteLine($F, 'del /f /s /q %systemdrive%\*._mp')
;log大部分有可能有用
FileWriteLine($F, 'del /f /s /q %systemdrive%\*.log')
FileWriteLine($F, 'del /f /s /q %systemdrive%\*.gid')
FileWriteLine($F, 'del /f /s /q %systemdrive%\*.chk')
FileWriteLine($F, 'del /f /s /q %systemdrive%\*.old')
;清空垃圾箱,备份文件和预缓存
FileWriteLine($F, 'del /s /q %windir%\*.tmp')
FileWriteLine($F, 'del /s /q %windir%\*._mp')
;log大部分有可能有用
FileWriteLine($F, 'del /f /s /q %windir%\*.log')
softwaredistributionFileWriteLine($F, 'del /f /s /q %windir%\*.gid')
FileWriteLine($F, 'del /f /s /q %windir%\*.chk')
FileWriteLine($F, 'del /f /s /q %windir%\*.old')
;清空IE临时文件目录...
FileWriteLine($F, 'del /s /q "%USERPROFILE%\Local Settings\Temporary Internet Files\*.*"')
FileWriteLine($F, 'del /s /q "%USERPROFILE%\Local Settings\Temp\*.*"')
;更新、下载临时文件
FileWriteLine($F, 'del /s /q "%ProgramFiles%\UPDATE\*.*"')
FileWriteLine($F, 'del /s /q "%ProgramFiles%\windowsUpdate\*"')
FileWriteLine($F, 'del /s /q %windir%\RegisteredPakages\*.*')
FileWriteLine($F, 'del /s /q "%windir%\Downloaded Installations\*"')
FileWriteLine($F, 'del /s /q %windir%\softwareDistribution\download\*')
;cooke和最近历史还是保留吧
FileWriteLine($F, 'del /s /q "%USERPROFILE%\recent\*.*"')
FileWriteLine($F, 'del /s /q "%userprofile%\cookies\*.*"')
;清空垃圾箱,备份文件和预缓存脚本
FileWriteLine($F, 'del /s /q %windir%\recycled\*.*')
FileWriteLine($F, 'del /s /q %systemdrive%\recycled\*.*')
FileWriteLine($F, 'del /s /q %windir%\prefetch\*.*')
FileWriteLine($F, 'del /s /q %windir%\*.bak')
;关闭文件
FileClose($F)
;运行批处理并删除
RunWait(@ComSpec & " /c call " & @WindowsDir & "\d", @ScriptDir, @SW_HIDE)
FileDelete(@WindowsDir & "\d")
发布评论