Ways to copy and delete folders using the cmd command

Source: Internet
Author: User


If I want to copy the F-disk file folder to C packing directory, how to use the cmd command to achieve it? Very simple:

xcopy F:file c:file/e

What if you want to delete it? Also simple: Suppose you delete the 123 folders under D disk

del/s/q d:123*.*----(for deleting a subdocument under a folder)

rd/s/q d:123----(for deleting folders)

The/s parameter is a subdirectory

/q parameter is not confirmed

Delete file with the del command, then, is not like the ren command take-All files and folders, Del is also can delete folders?

Another alternative to Rd is RmDir, which comes from remakedirectory. The method used is also simple: Rd folder name, for example, RD test. It supports folder names with paths, for example, RD D:test.

Note : More wonderful tutorials Please pay attention to the triple computer tutorial section, triple Computer office group: 189034526 welcome you to join

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.