DEL command instructions

  
                  Del is the abbreviation of delete, obviously its role is to "dry destruction" to delete files.

Copying files is a bit complicated, and deleting files is easy. Look, if I want to delete the a.bat file, type del a.bat to complete the task.

Simple, the format of the del command is as simple as: del filename. To delete a file in the current directory, enter the del space followed by the file name. Now you can try to delete the unwanted files.

To delete a type of file, you can use a wildcard. For example, del *.tmp deletes all files whose extension is tmp.

You can also delete all the files in the current directory. The command is very simple: del *.* or del .

At this point, the computer will tell you that all files in this directory will be deleted and ask if you want to continue.

If you don't want to delete, type n(no) If you really want to delete, type y(yes).

del *.* or del . Generally used to delete all files in the directory before deleting the subdirectory. (Remember, use with caution for beginners)

The del command can also delete files in non-current directories, such as del a:\\bmp\\sea.bmp, which is the sea.bmp in the bmp directory on the A disk. File deletion. You can try to delete all the files in the temp directory of the C drive. The correct way is to type del c:\\temp\\. or del c:\\temp\\*.* and then enter y.

Deleting useless files can increase the disk's available space. But before deleting the file, you'd better know the purpose of the file, and you can delete it if you have no use, otherwise you will regret it. Especially when using del . and del *.*, you should pay more attention because the files in a directory will be deleted.

Copyright © Windows knowledge All Rights Reserved