dir


dir

Without any options, dir displays the disk's volume label and serial number, a list of all files and subdirectories in the current directory, file/directory size, date/time of last modification, long filename, the total number of files listed, their cumulative size , and the free space (in bytes) remaining on the disk. If you specify one or more file or directory names ( * and ? wildcards are supported), information only for those files or directories will be listed. dir accepts the following options:

 dir [   filename   ] [/b] [/c] [/d] [/l] [/n] [/p] [/q] [/s]     [/w] [/x] [/4] [/a:   attributes   ] [/o:   sortorder   ]     [/t:   timefield   ] 

Option

Description

/a: attributes

Display only files with/without specified attributes (using - as a prefix specifies "not," and a colon between the option and attribute is optional).

/b

Use bare format (no heading information or summary). Use with /s to find a filename.

/c

Display compression ratio of files on Dblspace or DrvSpace drives , assuming 16 sectors per cluster.

/d

Same as /w , except files are sorted vertically.

/l

Use lowercase.

/n

List files in a "new" Unix-like display, where filenames are shown on the right.

/o: sortorder

List files in sorted order (using - as a prefix reverses the order, and a colon between the option and attribute is optional): d = date and time (earliest first), e = alphabetically by extension, g = group directories first , n = alphabetically by name , s = size (smallest first).

/p

Pause after each screenful of information; press any key to continue.

/q

Display the owner of each file.

/s

Include all files in all subdirectories, in addition to those in the current directory.

/t : timefield

Controls which time is used when sorting: c = created, a = last accessed, w = last modified (written)

/w

Wide list format. File and directory names are listed in five columns , and are sorted horizontally. Use /d instead to sort vertically.

/x

Include the "short" 8.3 versions of long filenames. For example, Sam's File.txt has an alternate filename, samsfi~1.txt to maintain compatibilty with older applications.

/4

Display the listed years as four digits. By default, two-digit years are displayed.

Examples

 dir dir *.txt dir \ /s /os > allfiles.txt dir \bubba\cdrom 


Windows XP Pocket Reference
Windows XP Pocket Reference
ISBN: 0596004257
EAN: 2147483647
Year: 2001
Pages: 154
Authors: David A. Karp

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net