How to copy and delete folders using CMD commands

  
                                      

If I want to copy the file folder of the f drive to the root directory of the c drive, how to use the cmd command? Very simple:

xcopy f:file c:file /e

If you want to delete it? Also simple: Assume to delete the 123 folder under the d drive

del/s/qd:123*.* ----(Used to delete the child under the folder File)

rd/s/qd:123 ----(used to delete folder)

/s parameter is subdirectory

/q parameter is not confirmed

Delete the file with the del command, then, is it like the ren command to eat files and folders, del can also delete the folder?

rd another way of writing Is rmdir, from ReMakeDirectory. The method used is also very simple: rd folder name can be, for example: rd test. It supports folder names with paths, for example: rd d:test.

Note: For more exciting tutorials, please pay attention to the computer tutorial section, computer office group: 189034526 welcomes you to join

Copyright © Windows knowledge All Rights Reserved