dir /Tw /Od /A-d /B *.log^|findstr /n /I DATA:
MSDOS command prompt tells me:
Invalid switch - "I".
How else can I pass a list of files to FINDSTR?
Sebastian
You could do it like this:
for %a in (*.log) do findstr /n /i "Data:" "%a"
You can use this switch, but I think your issue is that the ^ carot is not
used in a command line, unless it is part of a for-in-do command string
/F:file Reads file list from the specified file(/ stands for console).
script:
>The following pipe command cannot be done:
>
>dir /Tw /Od /A-d /B *.log^|findstr /n /I DATA:
>
>MSDOS command prompt tells me:
>
>Invalid switch - "I".
IIRC, there must be a space before and after the pipe symbol. (Double
vertical dash: '|' )
The clue may be that DOS calls it a switch. Switches apply only to a
command. Pipe is a command unto itself.
salaam,
dowcom
To e-mail me, add the character zero to "dowcom". i.e.:
dowcom(zero)(at)webtv(dot)net.
The fact that 'conventional wisdom' is indeed 'conventional',
does not, in any way, imply that it is wise.