中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-12 16:00
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » Querying DIR parameters
Printable Version  1,930 / 4
Floor1 yangfengoo Posted 2009-05-01 02:04
初级用户 Posts 41 Credits 47
To query all MP3 files under drive E:

The commands DIR /S/B E:\*.MP3 and DIR E:\*.MP3 /S/B both work, but DIR E:\*.MP3 does not. Why is it necessary to have parameters?
Floor2 goeasy2005 Posted 2009-05-12 06:41
中级用户 Posts 155 Credits 325
/s means including subfolders. Your mp3 files are placed in a folder. If you place them in the current directory, you don't need parameters.
Floor3 gdlkz Posted 2009-05-12 21:28
新手上路 Posts 7 Credits 14
The parameter /S has the meaning of searching. If this parameter is not present, all MP3 files in drive E: cannot be found, only the MP3 files in the root directory of drive E: can be found.
Floor4 fujiang1000 Posted 2009-12-17 00:04
初级用户 Posts 36 Credits 44
DIR attributes]]
sortorder]] timefield]]


Specifies the drive, directory, and/or files to list.

/A Displays files with specified attributes.
attributes D directory R read-only file
H hidden file A file ready for archiving
S system file - prefix meaning "not"
/B Uses empty format (no header information or summary).
/C Displays thousand separator in file sizes. This is the default. Use /-C to
disable separator display.
/D Same as wide, but files are listed in columns.
/L Uses lowercase.
/N New long list format where filenames are on the far right.
/O Lists files in sorted order.
sortorder N by name (alphabetic) S by size (smallest first)
E by extension (alphabetic) D by date/time (oldest first)
G directories first - prefix to reverse order
/P Pauses after each screenful of information.
Floor5 zhouwen606 Posted 2009-12-23 08:56
新手上路 Posts 6 Credits 10
Top the 2nd and 3rd floors.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023