裸鼹鼠吃粪便:怎样运行这个程序?

来源:百度文库 编辑:高考问答 时间:2024/04/28 07:25:58
我从网上复制程序如下:
@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%\小甜饼s\*.*
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

我按作者的说法保存在记事本中,文件的后缀为“.bat”, 然后双击该文件。可这样只能打开该文件,而不能运行,怎么办?

你是不是没有改掉真正的后缀名?
在任意文件夹下选“工具”〉“文件夹选项”〉“查看”把“隐藏已知文件扩展名”前的勾去掉,然后再看那个文件,如果有后缀.txt则把它删掉,直到文件图标变成一个齿轮而不是记事本

你可用“开始”菜单中的“运行”来打开!