CMD directory operation-del [Delete common files] and rd command [Delete non-empty folders]

Delete many files:

1. Use cd to switch to the desired folder address

2. Execute the following command:

del *.*

 

Delete empty folders and non-empty folders:

parameter:

rd /s/q 文件夹的名字

  1. / s deletes the specified directory and all subdirectories and all files it contains

  2. / q Quiet mode. When deleting the directory, no confirmation message will be prompted

  3. /? Display help information for this command

     

     

Published 625 original articles · praised 1732 · 1.22 million views

Guess you like

Origin blog.csdn.net/weixin_42859280/article/details/105640563