Feed multiple files from EVERYTHING into TTC listbox

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sunedin
Junior Member
Junior Member
Posts: 4
Joined: 2020-01-28, 12:32 UTC

Feed multiple files from EVERYTHING into TTC listbox

Post by *sunedin »

Hi Beautful people :) ,

I knwo there are ways to open selected single file or folder from EVERYTHING in TTC.

Is it possile to feed multiple selelcted files from EVERYTHING into TTC listbox?
NotNull
Senior Member
Senior Member
Posts: 266
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *NotNull »

There are 2 main challenges with that:
[1] Everything sends multiple files through multiple commands to the target.
Simplified example: if you open 3 txt files, it will start 3 notepad's and not 1 notepad with 3 files.

[2]There is no command-line to start TC with an opened listbox or a command to fill this listbox (that I could find)

The first challenge can be worked around by using an intermediate program that collects all separate files and sends them "bundled" to the desired application (TC in this case), but I don't know a solution for the second one.

So I would say: not possible.
(would be a nice feature, though)
sunedin
Junior Member
Junior Member
Posts: 4
Joined: 2020-01-28, 12:32 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *sunedin »

Hi NotNull. Nice quick thoughts! thanks.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *ghisler(Author) »

You can use the Everything syntax from within Total Commander by using the prefix ev: or ed:. The former doesn't restrict where to search, the second restricts the search to the start directory and its subdirs. For example,
ev:*.txt
will find text files everywhere on your harddisks.
Author of Total Commander
https://www.ghisler.com
NotNull
Senior Member
Senior Member
Posts: 266
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *NotNull »

I left that option out as OP wanted selected files to appear in the listbox.
Using the ev: method all results would be shown in the listbox.
sunedin
Junior Member
Junior Member
Posts: 4
Joined: 2020-01-28, 12:32 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *sunedin »

ghisler(Author) wrote: 2020-01-29, 17:15 UTC You can use the Everything syntax from within Total Commander by using the prefix ev: or ed:. The former doesn't restrict where to search, the second restricts the search to the start directory and its subdirs. For example,
ev:*.txt
will find text files everywhere on your harddisks.
Hi ghisler,

is it possible to search a goup of directories ? it seems a alternative solution for my case. Regards.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *tuska »

Maybe a little awkward, but...

Code: Select all

 1. [Right click on [..] in TC, click on context menu entry "Search with Everything ..."    
    ('Everything': Menu "Tools" - "Option..." - "General" - "☑ Show Search Everything folder context menu item")]   
 2. Search directly in 'Everything'
 3. [Mark the search result with Ctrl+A; Individual search results (Ctrl+click,click): Not currently required!] *)
 4. Menu "File" - "Export... CTRL+S"
 5. File name: e.g. Test.txt -> Save -> (the file is saved with encoding "UTF-8" [see: Notepad++])
    [If there are German umlauts in the file names (öäüÖÄÜ), then a different encoding is required - see: points 6. + 7.]
 6. Open Test.txt e.g. with Notepad++ [right click on file ... "Edit with Notepad++"]
 7. Click on the "Encoding" menu, then, for example, "Convert to UTF-8-BOM", press the "Save" button, menu "File" - "Close Ctrl+W"
    Regarding the required coding: See F1-Help or help text below.

Code: Select all

 8. Search in TC with ALT+Shift+F7
 9. Enter the following in the "Search in:"-field: @C:\Path\To\Test.txt
10. Press button "Start search"
11. "Search results": Folders and files are displayed in TC
12. Press button "Feed to listbox"

Code: Select all

The following "problems" still exist at present:
 *) In the search result of 'Everything' it is not possible to export only single search results,
    instead, all displayed search results are exported.     
    It is therefore necessary if applicable to use suitable search parameters to export a further restricted search result
    (e.g. with ... files:, folders:, exact: C:<Drive letter>, etc.)

 ** You may receive an error message in TC, provided that a hidden file exists, e.g. "descript.ion" 
    in the exported file "Test.txt" and is now accessed in the TC search:
    "Search path not found!
     Path\descript.ion"
     However, if you show the hidden files beforehand, for example with a button with the command: cm_SwitchHidSys,
     then this message is omitted.

Code: Select all

F1 Help
Search in separate process... Alt+Shift+F7 -> Find Files - click on button "Help" ---> Search in:
You can enter the name of a text file (ANSI, UTF-8 or UTF-16, the latter two with BOM) containing a list
of files and directories to be searched, in the form @c:\path\filelist.txt. 
The file must contain one file/directory name per line, either an absolute path, or relative to the location of the list file. 
The text file now also supports wildcards and regular expressions. The "Search for" field is ignored when searching from list.
EDIT:
According to information by email of 3.2.2020 from the author the following is to be considered:
- Double entries in the search result: This can only occur if there are overlaps,
  e.g. if you search in c:\windows and c:\windows\system32.
- Missing folders in search results: If you search in c:\windows, for example, the folder c:\windows itself will not be found.
  Otherwise no folders should be missing!
But I would like to point out that in principle the search query in 'Everything' - as already mentioned above -
can be carried out directly in TC with 'Everything' parameters (see also my signature).


Windows 10 Pro (x64) Version 1909 (OS build 18363.628)
TC 9.50rc2 x64/x86 | 'Everything'-Version 1.4.1.963 (x64)
☑ 'Everything' | Search queries: TC <=> 'Everything'
Last edited by tuska on 2020-02-03, 18:43 UTC, edited 1 time in total.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *tuska »

sunedin wrote: 2020-01-29, 18:41 UTC is it possible to search a group of directories ?
Yes.

In TC, e.g.

Code: Select all

ev:exact:folder:<Excel|Winword|Hardware|"MyPhoneExplorer for Android">
In EV, e.g.

Code: Select all

exact:folder:<Excel|Winword|Hardware|"MyPhoneExplorer for Android">
See: Menu "Help" - "Search Syntax" - Operators
Note: exact: is the same as modifier -> wfn:
sunedin
Junior Member
Junior Member
Posts: 4
Joined: 2020-01-28, 12:32 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *sunedin »

tuska wrote: 2020-01-30, 19:23 UTC
sunedin wrote: 2020-01-29, 18:41 UTC is it possible to search a group of directories ?
Yes.

In TC, e.g.

Code: Select all

ev:exact:folder:<Excel|Winword|Hardware|"MyPhoneExplorer for Android">
In EV, e.g.

Code: Select all

exact:folder:<Excel|Winword|Hardware|"MyPhoneExplorer for Android">
See: Menu "Help" - "Search Syntax" - Operators
Note: exact: is the same as modifier -> wfn:
Thanks! this one works. I will have a look the long solution. seems fun.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *tuska »

sunedin wrote:I will have a look the long solution. seems fun.
I had a problem (Point 9. and 11.) with

Code: Select all

"Search in:"-field: @C:\Path\To\Test.txt
which I reported to the author by email on 30.1.

I am already curious whether this problem occurs also with you.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *tuska »

Btw, I've added two more examples here, which deals with the search in file lists directly in 'Everything':
9. File list; Search in a text file (containing a list of files and directories to be searched),...

In particular, the "Example2"-'Everything' might be interesting for you - not only with regard to folders to be searched.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Feed multiple files from EVERYTHING into TTC listbox

Post by *tuska »

tuska wrote: 2020-01-31, 15:13 UTC
sunedin wrote:I will have a look the long solution. seems fun.
I had a problem (Point 9. and 11.) with

Code: Select all

"Search in:"-field: @C:\Path\To\Test.txt
which I reported to the author by email on 30.1.
According to information by email of 3.2.2020 from the author the following is to be considered:
- Double entries in the search result: This can only occur if there are overlaps,
  e.g. if you search in c:\windows and c:\windows\system32.
- Missing folders in search results: If you search in c:\windows, for example, the folder c:\windows itself will not be found.
  Otherwise no folders should be missing!
Post Reply