Quickly remove the batch code for illegal file names _dos/bat

Source: Internet
Author: User

For example.. Con nul et cetera

Two lines of code, quick Delete files and folders using illegal file names June 04, 2007 Monday 19:08
Copy Code code as follows:

del/f/a/q \\?\%1
RD/S/q \\?\%1

Save As. bat or. cmd file.
When you encounter any runauto..,com1 or something like that, just drag it from the Explorer onto the batch file, the Black window flashes, and the file (folder) disappears immediately.

This method works well, but it's a loophole.

No Filter out & so we can execute the code now OH

There are two key

1.cmd Startup folder environment for C:\Documents and Settings\Administrator

2.RD Delete directory to separate parameters with commas instead of spaces:)

Exp:allyesno&cd.. &cd.. &rd, you deleted me.

Wash and sleep, it's almost dawn ....

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.