FFIND TPIPE

Aug 9, 2009
161
0
None of the above find data in streams. Help specifically says FFIND can under NTFS File Streams section.

Mon 5/08/19 16:51
c:\lps>dir /:b Test
Test
Look:$DATA

Mon 5/08/19 16:51
c:\lps>type Test:Look
January
February
March
April
May
June
July
August
September
October
November
December
Mon 5/08/19 16:51
c:\lps>ffind /l/t"November" Test:Look
TCC: (Sys) The system cannot find the file specified.
"Test:Test"

0 lines in 0 files

what am I missing... hmm i see that ffind is looking for test:test not the file specified
 
May 20, 2008
9,700
67
Syracuse, NY, USA
It finds the stream but doesn't display the name correctly.
Code:
v:\> dir /k /m /: timecheck.btm
2019-07-11  12:37           1,267  timecheck.btm
                              853    nist.txt:$DATA
                              297    nonnist.txt:$DATA

v:\> ffind timecheck.btm:nis*
V:\timecheck.btm

      1 file

v:\> ffind timecheck.btm:foo*

      0 files
I don't know if it should find the text. Maybe it's just a matter of the name.
 

rconn

Administrator
Staff member
May 14, 2008
11,314
105
The help is wrong; FFIND has never supported streams.

There's actually two issues here:

1) Because the filename doesn't have a path or an extension, TCC is interpreting it as a Netware / Lanman name. This is really old code that can probably be safely removed.

2) Even when the stream name is actually passed to FFIND (i.e., with a path or extension), FFIND is only looking at the filename part.

If this is a feature you need, you can post it in the Suggestions Forum.
 
FFIND seems to work with a Pipe to find text in a stream;
Code:
e:\utils>copy con test
con => E:\Utils\test
Line 1
^Z
     1 file copied

e:\utils>copy con test:look
con => test:look
January
February
March
April
May
June
July
August
September
October
November
December
^Z
     1 file copied

e:\utils>type test
Line 1

e:\utils>type test:look
January
February
March
April
May
June
July
August
September
October
November
December

e:\utils>type test:look | ffind /l/t"November"

---- CON
[11] November

  1 line in      1 file
Joe
 
Aug 9, 2009
161
0
Thanks Joe that's how i got it to work.

On its own native syntax for each cmd it wont work
 
Aug 9, 2009
161
0
TO ALL JPSOFTWARE authors users my apologies TPIPE, RTFM problems. tpipe is good real good alongside tcc its brilliant