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 *.*
Answer: Option B
Solution (By Examveda Team)
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:.
Join The Discussion
Comments (1)
Related Questions on Disk Operating System (DOS)
In MS-Dos what command you will use to display system date?
A. Date command
B. Ver command
C. Disk command
D. Format command
While working with Ms-Dos which command transfers a specific file from one disk to another?
A. Copy
B. Diskcopy
C. Time
D. Rename
If you don't know the current time, which command will you use to display
A. Copy
B. Ver
C. Time
D. Format

Which of the following is most oriented to scientific programming?