Finding files with alternate data streams?

I have posted a couple of solutions, one in the PowerShell forum, and another in the CMD forum.

Under CMD, you can use DIR /R to display the alternate data streams of a file.

Under TCC, DIR /R disables wrap.

To display the alternate data streams of a file in TCC, the switch is DIR /:

Under TCC, this lists the ADS, but not the parent file name;
Code:
e:\utils>dir /: | find ":$DATA"
                              339    123.txt:$DATA
                               72    lll.txt:$DATA
                               26    Zone.Identifier:$DATA
                               89    Zone.Identifier:$DATA
Under CMD, it does return the parent file name;
Code:
e:\utils>dir /r | find ":$DATA"
                                   339 ll.btm:123.txt:$DATA
                                    72 ll.btm:lll.txt:$DATA
                                    26 sysutils64.dat:Zone.Identifier:$DATA
                                    89 TcpLogView.chm:Zone.Identifier:$DATA
Joe
 
May 20, 2008
10,634
82
Syracuse, NY, USA
I can find them like this, but the output of DIR /F is a little screwy.
Code:
v:\> dir /: /f | ffind /k /m /v /e":.*:"
V:\stoppers.btm:dell.txt:$DATA
V:\stoppers.btm:dell.txt:$DATAintel.txt:$DATA
V:\timecheck.btm:servers.txt:$DATA
 

samintz

Scott Mintz
May 20, 2008
1,424
13
Solon, OH, USA
I can find them like this, but the output of DIR /F is a little screwy.
Code:
v:\> dir /: /f | ffind /k /m /v /e":.*:"
V:\stoppers.btm:dell.txt:$DATA
V:\stoppers.btm:dell.txt:$DATAintel.txt:$DATA
V:\timecheck.btm:servers.txt:$DATA
I see the directory name repeated in the lines with the stream when I use /: /F.

C:\users\mintz\Downloads\_signout
C:\users\mintz\Downloads\C:\users\mintz\Downloads\_signout:Zone.Identifier:$DATA