Is this how I display all files with .txt?

  • Thread starter Thread starter gabe c
  • Start date Start date
G

gabe c

Is there a certain way to get .txt files on all drives or does it only work
in the drive that you are on? Thanks
 
gabe c said:
Is there a certain way to get .txt files on all drives or does it only work
in the drive that you are on? Thanks
FWIW:
for %A in (c d) do for /F "tokens=*" %B in ('DIR /B /S %A:*.txt') do more %B
Change here^^^ your own drive letters.
If you want continous output change more in type.
If you use it in a batch, double the percent signs.
 
Back
Top