Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Trying to use ffind with a @file.lst doesn't work

I use TCC 22.00.40 x64 Windows 10 [Version 10.0.17134]

I have a file list created with
ffind /n /tsomething *.txt > files.lst

Now I want to use this list to search again for another content
ffind /tsomethingelse @files.lst

The documentation tells me that this should work, but even if the specified contents is there it always says 0 files.

Any idea?
TIA
Martin
 
In the help for ffind I do not see that it can use a @file, and if I create a text file called "@files.lst" and inside it I write for example "sometext", then "ffind /tsometext @files.lst" finds the "sometext" INSIDE the file called "@files.lst".


Regards

Rodolfo Giovanninetti
 
What version are you using.

My file files.lst contains filename swith the extension .cpp.

D:\Dev\Root\Common>type files.lst
D:\Dev\Root\Common\BEx.cpp
D:\Dev\Root\Common\BCtrlEx.cpp
D:\Dev\Root\Common\BHeaderCtrlEx.cpp
...

D:\Dev\Root\Common>ffind /tcpp @files.lst
0 Zeilen in 0 Dateien


Help Index "@File List"
Quote:
A file list is simply a standard text file containing the names of the files to process, one per line. This allows you to create a list of files for processing using output from DIR /B, DIR /F, or FFIND, a text editor, or any other method that produces a file in the proper format. Both absolute and relative paths may be included in the file, However, wildcards are ignored, and each line is processed literally, without any further checking. This means that if a command allows options to restrict operations based on age (/U, /C), ranges (/I..., /[d..., /[t...), attributes (/A:), or location (/S), those restrictions will be ignored when processing the @file contents.
 
What version are you using.

My file files.lst contains filename swith the extension .cpp.

D:\Dev\Root\Common>type files.lst
D:\Dev\Root\Common\BEx.cpp
D:\Dev\Root\Common\BCtrlEx.cpp
D:\Dev\Root\Common\BHeaderCtrlEx.cpp
...


D:\Dev\Root\Common>ffind /tcpp @files.lst
0 Zeilen in 0 Dateien


Help Index "@File List"
Quote:
A file list is simply a standard text file containing the names of the files to process, one per line. This allows you to create a list of files for processing using output from DIR /B, DIR /F, or FFIND, a text editor, or any other method that produces a file in the proper format. Both absolute and relative paths may be included in the file, However, wildcards are ignored, and each line is processed literally, without any further checking. This means that if a command allows options to restrict operations based on age (/U, /C), ranges (/I..., /[d..., /[t...), attributes (/A:), or location (/S), those restrictions will be ignored when processing the @file contents.

I use TCC 22.00.41 x64 Windows 10 [Version 10.0.17134].
The help says that You can CREATE a file list with ffind, NOT that You can use a file list as input to ffind.
In fact, the help lists commands that can read a @file list, and ffind is not there.
Also, if in Your file list You have files with ".cpp" extension, the ffind command that You use here would try to find the "cpp" text INSIDE the files, not in their names.


Regards

Rodolfo Giovanninetti
 
...
The help says that You can CREATE a file list with ffind, NOT that You can use a file list as input to ffind.
...
In the Suggestions forum I wrote about enabling ffind to use a @filelist.
If You are interested You might vote there.


Regards

Rodolfo Giovanninetti
 

Similar threads

Back
Top