G
Guest
Hi I want to do more than 1 command in the IN clause of a FOR statement as
above (generically) or as in the below (specifically):
for /F %Q in ('( dir . /A /B /S /O:N & cd )')
do (for /F %R in ('dir %Q\*.* /A:-D /B')
do echo %~fxR )
I am trying to get a listing of all files in the directory structure at and
below the <current directory> - BUT I need to see the files in the <current
directory> LAST i.e. after all of the sub directories and their descendants.
I need this because when filenames appear more than once, the <current
directory takes precedence) otherwise they are to be considered in alpha
order.
above (generically) or as in the below (specifically):
for /F %Q in ('( dir . /A /B /S /O:N & cd )')
do (for /F %R in ('dir %Q\*.* /A:-D /B')
do echo %~fxR )
I am trying to get a listing of all files in the directory structure at and
below the <current directory> - BUT I need to see the files in the <current
directory> LAST i.e. after all of the sub directories and their descendants.
I need this because when filenames appear more than once, the <current
directory takes precedence) otherwise they are to be considered in alpha
order.