當前位置:編程學習大全網 - 網站源碼 - 尋求壹名VB編程高手幫我編寫壹套源碼——可以清理系統內的垃圾文件,並可以在壹定的環境下運行

尋求壹名VB編程高手幫我編寫壹套源碼——可以清理系統內的垃圾文件,並可以在壹定的環境下運行

打開記事本,將下面的代碼另存為bat文件,然後調用vb中的shell命令

@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\*.*

rd /s /q %windir%\temp & md %windir%\temp

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\*.*"

echo pengs清除完成!

echo. & pause

  • 上一篇:易語言,是否可以實現高級表格中單元格值等於指定數,自動添加背景色?
  • 下一篇:淘寶客網站用什麽程序好
  • copyright 2024編程學習大全網