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
11,388
99
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,501
16
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
 
Similar threads
Thread starter Title Forum Replies Date
fromano How to? Everything finding directories with 2 or more files in them Support 3
vefatica Finding files Support 13
D Finding a string position in a larger string Support 2
Roedy Finding TCC to clone Support 2
vefatica TCC v10 finding its own icon? Support 4
fpefpe How to? shortcuts and batch files Support 4
C v28 key files Support 2
J ffind does not find files Support 4
C duplicate files in multiple plugin sites Support 9
Dmitry L. Kobyakov Fixed The SETARRAY /R command works incorrectly with cyrillic files Support 2
S How to? Deinstalling TC/reinstating execution of bat files by cmd in Win7 Support 31
vefatica FFIND, temp files? ... not deleted? Support 0
R FUNCTION to count NUMBER of files matching a pattern and specific length/not length Support 4
vefatica Tmp files from in-process pipes not deleted Support 6
rps Multi-column DIR /v not displaying all files. Support 5
D How to skip files in a fileset? Support 6
vefatica PIPEVIEW leaves TMP files Support 18
K "copy /z /w" command not deleting read-only files in destination Support 10
Jesse Heines "Taken" date for JPG and PNG files Support 4
O I cannot use links to .btm files Support 5
C How to? rename files with spaces Support 8
R How to? Append files in multiple subfolders using copy? Support 8
Joe Caverly "Functions" in cmd.exe batch files Support 6
S Batch files Calling Batch Files Support 2
vefatica Find Files/Text dialog: does it work? Support 0
Joe Caverly UNZIPping older .ZIP files Support 3
C Documentation default location for LOG files Support 21
P exit /b in batch files Support 7
P Labels in batch files: TCC vs CMD.exe Support 9
M ANSI is used to show files instead of OEM in version 17 to 19 ! Support 5
C 7Z files on forum? Support 0
x13 Problem listing repository files using DIR http(s)://... Support 8
B Can copy command concatenate multiple mp3 files Support 2
redwdc Copying files with spaces, commas, etc. Support 5
J New lexer for TCC batch files. Support 0
M How to? want to download a file from a website enumarate the links and download the files Support 2
keithg1964 TCC RT Install Files Support 1
P Fixed Rexx .cmd files no longer work in TCC 20 Support 3
thorntonpg Handling files with embedded spaces Support 1
WavSlave Fixed Unable to sort files by description in TCC v19 Support 2
P Files older - exist Support 1
D safe delete files command Support 10
P Copying files in subdirectories Support 9
C WAD VIEW print multiple files - switches fail Support 10
MikeBaas How to? SELECT: exclude files / display prompt Support 2
Phileosophos WAD Can't rename files in subfolders Support 1
nickles WAD del unable to delete files ending in "." Support 18
P Rename files with ampersand in the name Support 1
C Touch command — I Need to touch matching files in another directory. Support 5
S iftp copying pgp files from ftp is not working Support 11

Similar threads