Record the way to delete a long directory

Source: Internet
Author: User
Tags robocopy

After reloading the computer and then delete the useless backup, found that some files directory too long, no way to delete the normal, find a lot of methods, suddenly found a command just fine.

Use the Robocopy command.

Robocopy is included in Microsoft Windows Server 2003 Resource Kit Tools (now integrated into Windows Vista and Windows 7), simply to support complex "copy" and "Paste" work, You can create a full mirrored copy of two file structures (including all subfolders and files depending on your selection) without copying any files that you do not need. Only new or updated files in the source location are copied. Robocopy also allows you to keep all relevant file information, including date and time stamps, secure access control lists (ACLs), and more.

1. Start key +r, enter CMD

2. Enter Robocopy, the screen will output cobocopy simple usage

3. Enter the root directory of the folder you want to delete and create an empty folder. For example, if the folder you want to delete is C:\aaa\aaa, create an empty folder under C:\aaa T1

Enter the AAA folder on 4.cmd

5. Type Robocopy/mir T1 AAA

6. Normal removal of T1 and AAA

Record the way to delete a long directory

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.