An attribute defines the file
system characteristics of a file. For example, a file with a hidden attribute isn??™t visible from the
command prompt unless you use the /AH command line switch. You can also exclude a file with
FINDING FILES AND DIRECTORIES WITH THE DIR COMMAND 403
a specific attribute from the search by adding the minus (-) sign in front of the attribute. For
example, specifying the /-AD switch would exclude directories from the output. See the sidebar,
???Standard FAT and NTFS File Attributes??? for a list of the command line attributes you can
check from the command line.
/B Removes the heading and summary information from the output. You can use this feature
to prepare a directory listing for a batch file or a script. It also comes in handy when you want to
prepare a list of files for a report.
/C Displays the thousand separator in file sizes, which is the default for most systems. This feature
makes the file sizes easier to read. Use the /-C command line switch to remove the thousand
separator from the file sizes.
/D Displays the file output in a wide list format. Generally, this feature allows the display to
hold more filenames at the expense of additional information, such as the file size.
Pages:
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959