cmd删除文件夹命令
时间:2022-05-30 13:32:45
cmd是根据命令输入来工作的提示符,在不同的操作系统环境下,命令提示符各不相同。是很强大又方便的字符操作方式,在某些特定环境下,cmd可以为用户提供强大的便利功能,比如删除顽固的文件夹,那么cmd删除文件夹命令是什么呢?一起来看看吧。
cmd删除文件夹命令方法
1、首先在系统界面同时按下win+r键,在打开的运行中输入cmd进入如下图的命令提示符界面。
![cmd删除文件夹命令](https://img.aspxhome.com/file/2023/6/a322547_1.jpg)
2、提前想好你要删除的文件夹。想要删除的文件夹下可能还有很多子文件夹和各子文件夹下文件,下图文件夹只是做示范。
![cmd删除文件夹命令](https://img.aspxhome.com/file/2023/6/a322547_2.jpg)
3、特别需要注意的是,单纯的rd命令只能删除空文答件夹。
![cmd删除文件夹命令](https://img.aspxhome.com/file/2023/6/a322547_3.jpg)
4、在准备删除之前,可以先看看这个文件夹里面到底有些什么子文件夹和文件,还有没有需要的文件了。
![cmd删除文件夹命令](https://img.aspxhome.com/file/2023/6/a322547_4.jpg)
5、先删除aaaaa下所有的文件(而非文件夹),输入以下这个命令: DEL D:\aaaaa\*.* 然后会弹出选择提示是否确定删除的界面,根据提示,请选择y,y的意思是确定删除。
![cmd删除文件夹命令](https://img.aspxhome.com/file/2023/6/a322547_5.jpg)
6、经过第一步的操作,这里的文件夹都已经是空文件夹了。继续输入以下命令: RD /S D:\aaaaa 。同样会弹出选择提示是否确定删除的界面,还是根据提示选择y,即确定删除。
![cmd删除文件夹命令](https://img.aspxhome.com/file/2023/6/a322547_6.jpg)
7、通过以上步骤的操作,被选择的文件就会被彻底删除掉了。
![cmd删除文件夹命令](https://img.aspxhome.com/file/2023/6/a322547_7.jpg)
标签:CMD命令
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
老外眼红:《英雄联盟》训练模式国服率先上线
2022-05-19 05:35:50
![](https://img.aspxhome.com/file/2023/2/a285391_0s.jpg)
Win10系统电脑战网客户端无法正常安装的解决方法
2022-06-16 17:41:42
![](https://img.aspxhome.com/file/2023/4/a303787_0s.jpg)
word页码不连续怎么办,word页码不连续的处理技巧
2023-11-05 06:29:03
![](https://img.aspxhome.com/file/2023/7/33557_0s.png)
Win10 Your Phone支持手机当画板同步内容
2022-10-21 16:37:53
![](https://img.aspxhome.com/file/2023/3/a301910_0s.jpg)
wps2019文档怎么固定行数和每行字符数量?
2022-05-09 06:17:41
![](https://img.aspxhome.com/file/2023/4/a165844_0s.jpg)
怎么在Excel表格中的数据快速转置成多列数据
2022-05-14 04:57:15
Windows Server 2016技术第三预览版10537英文版ISO镜像下载泄露
2023-04-28 23:38:14
![](https://img.aspxhome.com/file/2023/28/a247437_0s.jpg)
苹果Mac电脑不会中病毒?你想的太天真了
2022-10-04 10:40:49
![](https://img.aspxhome.com/file/2023/6/a215006_0s.jpg)
怎么改变win7我的文档默认路径位置
2023-07-24 17:51:26
![](https://img.aspxhome.com/file/2023/26/a228707_0s.jpg)
Wps如何快速截取表格开头文本?Wps快速截取表格开头文本的方法
2022-01-22 23:34:49
![](https://img.aspxhome.com/file/2023/1/a182331_0s.gif)
无法更新Win11系统 Win10更新没有Win11选项怎么办
2022-10-01 09:05:49
![](https://img.aspxhome.com/file/2023/27/a236199_0s.png)
wps中表格文字显示不全怎么办?
2023-05-16 19:18:28
![](https://img.aspxhome.com/file/2023/3/a168903_0s.jpg)
api-ms-win-core-path-l1-1-0.dll 是什么?api-ms-win-core-path-l1-1-0.dll 丢失
2023-04-12 12:11:32
![](https://img.aspxhome.com/file/2023/1/a272506_0s.png)
word07开发工具怎么调出来
2023-11-30 07:29:40
![](https://img.aspxhome.com/file/2023/9/18959_0s.jpg)
Win10系统怎么实现游戏窗口化?
2022-11-26 04:10:48
![](https://img.aspxhome.com/file/2023/4/a311075_0s.jpg)
Excel 中如何实现从右向左的逆向查询
2023-05-20 00:32:27
![](https://img.aspxhome.com/file/2023/3/a140093_0s.jpg)
Win10系统怎么拦截弹窗广告?Win10系统拦截弹窗广告方法教程
2023-05-06 16:22:14
![](https://img.aspxhome.com/file/2023/26/a220876_0s.jpg)
Word文件双面打印教程
2023-12-03 00:00:33
Win10系统下打开NBA 2K15闪退怎么办?解决方法
2022-04-27 17:30:01
![](https://img.aspxhome.com/file/2023/29/a261510_0s.jpg)
什么是“同步化”Word2007中如何实现多个图形“同步化”
2022-09-08 01:37:59
![](https://img.aspxhome.com/file/2023/3/29273_0s.jpg)