FOR /R and hidden files

  • Thread starter Thread starter David Trimboli
  • Start date Start date
D

David Trimboli

FOR /R only seems to go through non-hidden files. Is there a way to
change this and have it go through all files?

David
Stardate 6471.7
 
FOR /R only seems to go through non-hidden files. Is there a way to
change this and have it go through all files?

use /f instead ala:

@echo off
for /f "delims=" %%a in ('dir /b /s /a:-d') do echo command "%%a"
 
foxidrive said:
use /f instead ala:

@echo off
for /f "delims=" %%a in ('dir /b /s /a:-d') do echo command "%%a"

Thanks, foxidrive. For some reason I had been thinking of nesting FOR
commands, and it was getting messy.

David
Stardate 6474.2
 
Back
Top