Microsoft KB Archive/240666

= /B Switch Does Not Work Together with All DIR Commands =

Article ID: 240666

Article Last Modified on 3/1/2007

-

APPLIES TO


 * Microsoft Windows 2000 Server
 * Microsoft Windows 2000 Advanced Server
 * Microsoft Windows 2000 Professional Edition
 * Microsoft Windows 2000 Datacenter Server

-



This article was previously published under Q240666



SYMPTOMS
When you use the dir command at a command prompt, you can use multiple switches at once. However, some switches are ignored when you use the /b switch. The /b switch uses "bare" format.



CAUSE
The /b switch displays files in a bare format with no heading information or summary. Using the /b switch in the same command with the following switches causes only the /b switch information to be displayed:

/c

/d

/n

/w

/x

/4



STATUS
This behavior is by design.



MORE INFORMATION
The dir command has the following syntax: DIR [drive:][path][filename] [/A]attributes[/B][/C][/D][/L][/N] [/O]sortorder [/P] [/Q] [/S] [/T]timefield [/W] [/X] [/4]

/A         Displays files with specified attributes. /B         Uses bare format (no heading information or summary). /C         Display the thousand separator in file sizes. This is the default. Use /-C to disable display of separator. /D         Same as wide but files are list sorted by column. /L         Uses lowercase. /N         New long list format where filenames are on the far right. /O         List by files in sorted order. /P         Pauses after each screenful of information. /Q         Display the owner of the file. /S         Displays files in specified directory and all subdirectories. /T         Controls which time field displayed or used for sorting /W         Uses wide list format. /X         This displays the short names generated for non-8dot3 file names. /4         Displays four-digit years

Keywords: kbprb KB240666

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.