标题:VB与BAT命令
取消只看楼主
opelwang
Rank: 1
等 级:新手上路
帖 子:78
专家分:3
注 册:2009-7-2
结帖率:77.78%
已结贴  问题点数:20 回复次数:0 
VB与BAT命令
用VB做个按钮,将以下代码,写入记事本,保存为:.bat
并运行,运行完成后,删除该文件。


@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 清除系统LJ完成!
echo. & pause
搜索更多相关主题的帖子: VB 命令 echo del temp 
2018-03-12 21:02



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-485201-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.268219 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved