Prepare for the COMPTIA A+ Exam. Test your knowledge with our flashcards and multiple choice questions, complete with hints and explanations. Ensure you're ready for exam day!

Each practice test/flash card set has 50 randomly selected questions from a bank of over 500. You'll get a new set of questions each time!

Practice this question and more.


What does the DOS command 'Set Dircmd=/on /w' do?

  1. Shows directories in reverse date order

  2. Includes all subdirectories in listing

  3. Sets environment variable for wide format listing

  4. Lists both long and short filenames

The correct answer is: Sets environment variable for wide format listing

This command changes the default settings for directory listings in the Windows Command Prompt. More specifically, it sets the environment variable 'Dircmd' to include the options '/on' which shows directories in alphanumeric order, and '/w' which displays the listings in a wide format. Option A is incorrect because it specifies reverse date order which is not included in this command. Option B is incorrect because while it includes all subdirectories, it does not change the format of the listing. Option D is incorrect because it only specifies the display of both long and short filenames, but not the format of the listing. Therefore, option C is the most accurate explanation.