我有folder
几个subfolders
。每个subfolder
都有几个sub-subfolders
,每个sub-subfolder
都有几个文件,就像这样
folder
|____subfolder1
|_________sub-subfolder1
| |______________file1
| |______________file2
| |______________file3
|_________sub_folder2
| |______________file4
| |______________file5
| |______________fileN
subfolder2
|_________sub-subfolder2
|
etc
我知道从我可以做的子文件夹中获取文件
dir /s/b/o:gn
但是,在这种情况下,这给了我sub-subfolder1
和sub-subfolder2
. 我想得到file1
, file2
, file3
,file4
等。
我怎样才能做到这一点?