Which command is used to delete all the files in the root directory of drive a A. A:\del B. Del *.* a: C. Del a:\ D. Erase *.*

A:del
Del *.* a:
Del a:\
Erase *.*

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. The del command must be followed by the name of the file or files to be deleted.
  • Option C: Del a:\ is not a valid command. The del 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.
Exit mobile version