Marksheu's Blog

馬K書部落格

(XP專用)清除系統垃圾加強版

Posted by marksheu 於 九月 12, 2011

(XP專用)清除系統垃圾加強版

@echo off
echo 正在清除系統垃圾檔案中,請稍候......
del /f /s /q %systemdrive%\*.tmp
del /f /s /q %systemdrive%\*._mp
del /f /s /q %systemdrive%\*.log
del /f /s /q %systemdrive%\*.gid
del /f /s /q %systemdrive%\*.chk
del /f /s /q %systemdrive%\*.old
del /f /s /q %systemdrive%\recycled\*.*
del /f /s /q %windir%\*.bak
del /f /s /q %windir%\prefetch\*.*
del /f /q %userprofile%\cookies\*.*
del /f /q %userprofile%\recent\*.*
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\recent\*.*"
DEL /S /F /Q "%systemroot%\Temp\*.*"
DEL /S /F /Q "%AllUsersProfile%\「開始」功能表\程式集\Windows Messenger.lnk"
RD /S /Q %windir%\temp & md %windir%\temp
RD /S /Q "%userprofile%\Local Settings\Temp"
MD "%userprofile%\Local Settings\Temp"
RD /S /Q "%systemdrive%\Program Files\Temp"
MD "%systemdrive%\Program Files\Temp"
RD /S /Q "%systemdrive%\d"
net user aspnet /delete
cleanmgr /sagerun:99
echo 清除系統垃圾檔案完成!!
EXIT
#請將上方指令Copy to 記事本,另儲存為(XP專用)清除系統垃圾加強版.bat#
About these ads

2 回應 to “(XP專用)清除系統垃圾加強版”

  1. parrot said

    請問一下
    這個bat檔是刪了些什麼?
    純屬好奇,加上害怕對系統造成傷害,並無惡意

    • marksheu said

      parrot日安:
      XP專用清除系統垃圾加強版.bat
      清除系統垃圾檔
      del *.tmp ,*._mp ,*.log,*.gid,*.chk,*.old,*.bak
      del \recycled\*.*
      del \prefetch\*.*
      del \cookies\*.*
      del \recent\*.*
      del \Temporary Internet Files\*.*
      del \Temp\*.*
      del \recent\*.*
      DEL \Windows Messenger.lnk
      對winXP系統不傷害,使系統效能更佳.
      Marksheu’s Blog 感恩合十

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 變更 )

Twitter picture

You are commenting using your Twitter account. Log Out / 變更 )

Facebook照片

You are commenting using your Facebook account. Log Out / 變更 )

Google+ photo

You are commenting using your Google+ account. Log Out / 變更 )

連結到 %s

 
關注

Get every new post delivered to your Inbox.

%d 位部落客按了讚: