帮忙做一个批处理文件

来源:百度知道 编辑:UC知道 时间:2024/05/23 16:13:04
C:\Documents and Settings\依然自在\Local Settings\Temp
C:\Documents and Settings\依然自在\Local Settings\Temporary Internet Files

清空这两个路径里的文件,回答时把命令发上来就行了,然后告诉我怎么运行。谢谢

新建一个文本文档,输入:
@echo off
echo 正在删除文件,请稍等......
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
echo 删除文件完成!
echo. & pause
保存为后缀是bat的文件,双击即可。
就是这两个了,这里的%userprofile%就是你的用户名所在的文件夹了,写你的用户名的话是无法辨认的。

@echo off
echo 正在删除文件,请稍等......
rd /s /q %windir%\temp & md %windir%\temp
del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"
del /f /s /q "%userprofile%\Local Settings\Temp\*.*"
echo 删除文件完成!
echo. & pause

del "C:\Documents and Settings\依然自在\Local Settings\Temp\*.*" /s /q
del "C:\Documents and Settings\依然自在\Local Settings\Temporary Internet Files\*.*" /s /q