A:del
Del *.* a:
Del a:\
Erase *.*
Answer is Wrong!
Answer is Right!
The correct answer is: B. Del . a:
The del
command is used to delete files. The *.*
wildcard matches all files, and the a:
specifies the drive letter. So, the command del *.* a:
will delete all files in the root directory of drive a.
The other options are incorrect for the following reasons:
- Option A:
A:\del
is not a valid command. Thedel
command must be followed by the name of the file or files to be deleted. - Option C:
Del a:\
is not a valid command. Thedel
command must be followed by the name of the file or files to be deleted. - Option D:
Erase *.*
is a valid command, but it will delete all files in the current directory, not the root directory of drive a.