Remember to delete a strange 0-byte file ...

Source: Internet
Author: User

Phenomenon:

Because the download interrupted, more than three 0-byte files on the desktop, the end. Pdf_ and. Tar_, deleted when the file does not exist, and cannot be renamed, use CMD LS to see the file in the list, size 0kb

Operating system: win8.1

Method:

Using the common online

@ECHO OFF
Cls
Color 0a
is echo sure you want to try to delete? OK to delete please press any key to exit please close the window.
Pause >nul
taskkill/f/im Explorer.exe>nul
Echo y| Cacls%*/c/t/P everyone:f >nul
del/f/a/q \\?\%*
RD/S/q \\?\%*
Start%windir%\explorer.exe
Exit

Dragging into any file cannot be deleted, and the Explore.exe process will be terminated.

After the experiment found to drag three files together into the Del.bat, then the first file (yes, the Windows desktop from left to right first) will be deleted, BAT's window flashed the word "The file does not exist."

The remaining two files are dragged into the bat file again, the first file is deleted, and the word "The file does not exist" is still displayed.

The remaining file, which is associated with any other file, is dragged into the Delete method (deleting the file individually will fail and cause the explore process to be terminated).

The 0-byte file still needs to be dragged into bat with the first bit and a file that can be deleted normally, and the last two files will be deleted.

Remember to delete a strange 0-byte file ...

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.