ExamVeda
Login
Home
Disk Operating System (DOS)
?

Which command is used to delete all the files in the root directory of drive a

Answer & Solution
Correct Answer: Option B
Del . a: is the command used in DOS to delete all files in the root directory of drive A.

Explanation:
The del command is used to delete files in DOS.
. specifies that all files (regardless of their extensions) should be deleted.
a: specifies the drive letter A, indicating that the operation should be performed on drive A (the floppy disk drive).

When you execute del . a: at the DOS prompt, it will delete all files in the root directory of the A drive.

A:\del is not the correct syntax for deleting all files on drive A. The correct command starts with del followed by . and the drive letter.

Del a: is incorrect because it doesn't specify the files to delete (missing . or specific file names).

Erase . is not a valid command in DOS for deleting files. The correct command is del for deleting files.

Therefore, the correct answer is Option B: Del . a:.
Examveda
Question posted by Examveda
Community

Join the Discussion

1 Comment
Satish Nallapaneni
Satish Nallapaneni 5 years ago
Which of the following is most oriented to scientific programming?