DIR/W
DIR A:
DIR/B
DIR/S E. None of the above
Answer is Wrong!
Answer is Right!
The correct answer is: DIR/B
The DIR command is used to list the files and directories in a directory. The /B switch tells DIR to display only the file and directory names, without any other information.
The other options are incorrect for the following reasons:
- DIR/W displays the file and directory names in wide list format.
- DIR A: displays the contents of the A: drive.
- DIR/S displays the files and directories in sorted order.
- None of the above is a valid command.