G gabe c Jan 29, 2004 #1 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
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
M Matthias Tacke Jan 29, 2004 #2 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 Click to expand... 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.
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 Click to expand... 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.