On windows Server, the com1 and prn files cannot be deleted. Solution:

Source: Internet
Author: User
Tags php and

1. Let's Make a del. bat batch processing file.

2. The specific creation method is very simple. Choose "start"> "program"> "attachment"> "notepad" on your server, right-click the desktop, and create a notebook.

3. Open the notepad file and copy the following code to your notepad:

DEL/F/A/Q \? % 1

RD/S/Q \? % 1

4. Choose "file"> "save"> "save"> "all types" for the save type, and enter the file name as "del. bat "(the file name does not contain double quotation marks), of course, you can also directly rename the notepad.

5. We can find this type of files and directly put the batch files in the same directory as them, and then click del. bat to delete them.

The Yunqi community editor reminds you that some servers have installed some anti-virus software to restrict the inability to delete php and asp files. If you stop the software, you can delete it.

Related Article

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.