DOS Command del usage instructions

Source: Internet
Author: User

Del is the abbreviation for delete (deletion), apparently its function is "dry destroy" delete file.

Copying files is a bit more complicated, and deleting files is easy. You see, if I want to delete the A.bat file, enter del A.bat to complete the task.

Simple, the format of the DEL command is so simple: Del file name. To delete a file in the current directory, enter the Del space plus the filename. Now you can try to delete the discarded files. This article is published in http://bianceng.cn (computer science)

To delete a class of files, you can use wildcard characters. Del *.tmp, for example, deletes all files with the name extension tmp.

You can also delete all the files in the current directory, and the command is simple: Del *.* or Del. 。

The computer will tell you that all files in this directory will be deleted and ask if you want to continue,

If you do not want to delete, enter N (no), and if you do want to delete, enter Y (yes).

Del *.* or Del. Generally used to delete all files in a directory before deleting subdirectories. (Remember, beginners use caution)

Del command can also be deleted unless the current directory of files, such as Del A:\bmp\sea.bmp, is a disk on the BMP directory of sea.bmp files deleted. You can try to delete all the files in the temp directory on the C disk, and the correct way is to enter Del C:\temp\. Or Del c:\temp\*.*, and then enter Y.

Deleting unwanted files can increase the disk's available space. But before you delete the file, you'd better know what the file is for, and make sure it's useless before you can delete it, or you'll regret it. Be more careful when using Del. And Del *.*, because files in one directory will be deleted.

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.