中国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-13 19:18
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » How to use a command under DOS to list all files in all folders under a certain root directory?
Printable Version  2,468 / 7
Floor1 80286 Posted 2006-08-07 21:16
中级用户 Posts 142 Credits 288
Please: In DOS, what command is used to list all files in all folders under the C drive? When listing, don't have all files crammed together. It's better to group them under their respective folders. Can this be done? Directly using dir will show <dir> when encountering a folder. Can we directly list the file names?

[ Last edited by 80286 on 2006-8-7 at 22:42 ]
Floor2 electronixtar Posted 2006-08-07 22:18
铂金会员 Posts 2,672 Credits 7,493
Floor3 80286 Posted 2006-08-07 22:45
中级用户 Posts 142 Credits 288
Thanks to the great expert's guidance!
Floor4 luoxinxin1988 Posted 2006-08-12 17:03
初级用户 Posts 48 Credits 190
Floor5 ywzhuss Posted 2006-08-12 22:24
中级用户 Posts 108 Credits 396
dir *.* > a.txt
Then take a look at a.txt.
Floor6 anqing Posted 2006-08-18 19:42
高级用户 Posts 413 Credits 859
Does this dir *.* include hidden system files?
Floor7 electronixtar Posted 2006-08-18 19:57
铂金会员 Posts 2,672 Credits 7,493
tree /f C: > D:\result.txt
Floor8 paldos Posted 2006-08-19 23:18
初级用户 Posts 27 Credits 62
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023