The use of the del command is very simple, just use the format of "del file path". For example, if you want to delete test.txt in the root directory of disk D, use del d: \ test.txt ..
However, not all files can be processed with the del command, such as files with hidden attributes, read-only attributes or system attributes. If d:\test.txt has hidden attributes, if it is just del d:\test.txt, d:\test.txt will not move.
Extended data:
DOS commands provided to users can be divided into three categories:
internal command
It is part of the memory that resides in DOS commands. When the system is cold-started or hot-started, it is loaded into memory by system files on disk. When users use it, they only need to call a program segment in the system area in memory to execute it. For example, commands such as DIR, TYPE and COPY are internal commands.
external command
It exists on disk as an executable program file (usually suffix. Exe or. COM)。 This means that the command file must be recorded on a disk or floppy disk that has been inserted into the drive, otherwise DOS will not find the command. For example, FORMAT.COM, DISKCOPY.COM, etc.
Batch command
In the process of using disk commands, sometimes it is necessary to use several DOS commands continuously, sometimes it is necessary to use several DOS commands repeatedly, and sometimes it is necessary to use some DOS commands selectively. In order to meet these requirements, DOS provides some special files-files with the suffix BAT. This file allows users to organize keyboard command language programs, build them once and execute them many times.
This BAT file can be created by word processing software. The most typical example is a batch command file named AUTOEXEC. BAT on DOS system disk. When the system is cold-started or hot-started, the machine will automatically execute the DOS command on this file.