您的位置:首页 >科技 >

bat属于什么文件类型(bat是什么文件)

你们好,最近小时发现有诸多的小伙伴们对于bat属于什么文件类型,bat是什么文件这个问题都颇为感兴趣的,今天小活为大家梳理了下,一起往下看看吧。

1、第一、了解什么是bat文件

2、BAT文件是DOS下的批处理文件。是一种无格式的文泛诸追本文件。运行BAT文件后系统会自动连续执行一条或者多条命令。 激泛   鼠标双击批处理文件后,系统会自动调用命令提示符程序(cmd.exe)依照批处理文件中的命令代码来逐步执行相关内容。

3、第二、制作bat文件清理c盘垃圾

4、步骤:

5、1、新建记事本即后缀为“.txt”的文本,并命名为“电脑垃圾清理”

6、双击打开该记事本文档,将下面的这段文字复制到记事本文档中

7、@echo off   

8、echo 正在清除系統垃圾文件,請稍等......   

9、del /f /s /q %systemdrive%\*.tmp   

10、del /f /s /q %systemdrive%\*._mp   

11、del /f /s /q %systemdrive%\*.log   

12、del /f /s /q %systemdrive%\*.gid   

13、del /f /s /q %systemdrive%\*.chk   

14、del /f /s /q %systemdrive%\*.old   

15、del /f /s /q %systemdrive%\recycled\*.*  耻耕 

16、del /f /s /q %windir%\*.bak   

17、del /f /s /q %windir%\prefetch\*.*   

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

19、del /f /q %userprofile%\cookies\*.*   

20、del /f /q %userprofile%\recent\*.*   

21、del /f /s /q "%userprofile%\Local Settings\Temporary Internet Files\*.*"

22、del /f /s /q "%userprofile%\Local Settings\Temp\*.*"   

23、del /f /s /q "%userprofile%\recent\*.*"   

24、echo 清除系統LJ完成!   

25、echo. & pause

26、复制完成后,保存记事本文档

27、选中该记事本文档,“文件”-“另存为”,将txt后缀改为bat即可

28、双击运行该程序,就开始清理电脑C盘里的垃圾了

以上就是bat是什么文件这篇文章的一些介绍,希望对大家有所帮助。

免责声明:本文由用户上传,如有侵权请联系删除!