Win7系统批处理删除文件的方法
时间:2022-08-25 22:08:14
平常使用电脑过程中,我们可以使用批处理命令,轻松删除文件。批处理文件是扩展名为·bat 或·cmd的文本文件,包含一条或多条命令,由DOS或Windows系统内嵌的命令解释器来解释运行。接下来,我们就一起往下看看Win7系统批处理删除文件的方法。
方法/步骤
1、右键打开右键菜单,新建一个文本文档;
2、把文本文档的.txt后缀改成.cmd或者.bat,比如把“新建文本文档.txt”改成“test.bat”;
3、在弹出的对话框中点击确定;
4、右键点击test.bat,在弹出的菜单中点击编辑;
5、然后输入如下命令(比如要删除该文件夹下所有txt文件);
@echo on
for /r %%f in (*.htm) do del %%f
Ctrl+S保存
6、把test.bat文件拷贝到你要处理的文件夹下;
7、最后双击test.bat文件之后,这个文件夹下所有的txt文件都被删除了。
标签:批处理
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
wps演示如何插入艺术字
2022-08-13 19:49:10
Mac屏幕上的箭头总是消失怎么办? mac鼠标箭头不见了的解决办法
2022-10-24 17:11:01
![](https://img.aspxhome.com/file/2023/3/a214353_0s.jpg)
wps表格怎么取消超链接
2023-05-05 17:01:24
如何在Word2003中插入脚注和尾注的图文方法
2022-12-17 06:42:47
![](https://img.aspxhome.com/file/2023/1/29711_0s.jpg)
删除和重命名Word2010自定义图表模板
2023-12-14 00:23:17
![](https://img.aspxhome.com/file/2023/0/21580_0s.jpg)
WPS word脚注怎么设置
2023-03-01 07:01:05
![](https://img.aspxhome.com/file/2023/8/a185878_0s.jpg)
MAC如何格式化U盘
2022-10-07 01:14:36
![](https://img.aspxhome.com/file/2023/3/a216653_0s.jpg)
Win10字体显示不清晰怎么解决?
2022-09-28 21:17:44
![](https://img.aspxhome.com/file/2023/26/a226686_0s.jpg)
Excel中进行函数公式复制操作的具体方法
2022-09-07 14:52:54
realtek高清晰音频管理器已停止工作怎么办?
2023-11-05 14:21:33
![](https://img.aspxhome.com/file/2023/9/47779_0s.jpg)
Win10设置IE浏览器关联的文件类型
2022-12-20 23:33:22
![](https://img.aspxhome.com/file/2023/26/a226963_0s.jpg)
SUMPRODUCT常用函数的使用方法
2023-09-04 11:51:15
![](https://img.aspxhome.com/file/2023/8/a163438_0s.jpg)
Mac新手教程:Mac桌面的Macintosh HD图标如何删除?
2023-12-05 05:46:02
![](https://img.aspxhome.com/file/2023/8/a203658_0s.jpeg)
排序是一种很常见的需要
2022-02-22 06:01:23
Word如何用好段落编号?word自动编号的那些事儿
2022-12-24 07:16:54
![](https://img.aspxhome.com/file/2023/8/23938_0s.jpg)
在wps中怎么快速批量给数字加下划线?
2022-11-23 10:59:29
![](https://img.aspxhome.com/file/2023/4/a166874_0s.jpg)
Excel2010怎么给汉字标注拼音
2022-10-30 01:52:15
![](https://img.aspxhome.com/file/2023/0/a143610_0s.jpg)
怎么去掉wps广告?
2023-09-25 12:54:11
![](https://img.aspxhome.com/file/2023/5/a168525_0s.png)
如何将PDF文件转换为doc文件
2023-01-17 23:56:59
![](https://img.aspxhome.com/file/2023/2/34942_0s.jpg)
如何在Word2010中查找指定文字
2023-11-29 20:08:45
![](https://img.aspxhome.com/file/2023/0/18710_0s.jpg)