Which switch should be used in the DIR command to view files in all directories? A. /p B. /w C. /s D. /l

/p
/w
/s
/l

The correct answer is C. /s.

The /s switch tells the DIR command to list all files in the current directory and all subdirectories.

The /p switch pauses after each screenful of output.

The /w switch displays a wide listing, with filenames and attributes displayed on multiple lines.

The /l switch displays filenames in lowercase.