Ace your COMPTIA A+ certification with our practice exam. Engage with a variety of questions including multiple choice and performance-based, complete with hints and detailed explanations. Prepare effectively and boost your confidence for the big 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.