U disk can also create Recycle Bin

Source: Internet
Author: User

First, we need to create a new text file and enter the following:

@echo off

MD d:u Disk Recycle Bin 2>nul

For%%i in (%*) do (

move/y%%i e:u Disk Recycling Station 2>nul| | (

xcopy/e/s/k/o/q/y%%i ' EU disk Recycle Bin%%~nxi ' &&rd/q/s%%i

)

)

Save it as a batch file for "U disk Recycle Bin. bat" and place it in the "C:documents and Settings Username sendto" folder.

Now select the file you want to delete, click the right mouse button, and select "Send To"-"U disk Recycle Bin", you can move these files and folders to the E:u Disk Recycle Bin folder, and when we mistakenly delete the file, just find the file in the folder that needs to be recovered, right-click and select "Send To"-"U disk Letter". We'll just have to clear the folder periodically.

For a U disk to create a recycle Bin, in the Recycle Bin, you can retrieve the files of the U disk mistakenly deleted, the new text in the U disk, input the above provided to everyone's content, and keep under the designated file directory, create a complete, will find a U disk more than a recycle Bin. Then try to delete your file, you can see in your U disk Recycling station, do a preparedness.

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.