Any statistics after searchin the list of files? is that possible?

If you are experiencing problems with "Everything", post here for assistance.
mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Dec 20, 2019 5:59 am

I often us the search "filelistfilename" and there could be 200 or 300 files in one search request

and some of them Everything finds, some of them Not... (cause they don't exist, for example, or I've done some misspelling)
anyway.... I've been thinking about some statistics would be great to get after searching this way...

for instance;
to do it available to see the list of results:
filename one: found 3 times
filename two: found 2 times
filename five: found 0 times

what do you think ??

NotNull
Posts: 1790
Joined: Wed May 24, 2017 9:22 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by NotNull » Fri Dec 20, 2019 2:56 pm

Suppose you have 7 filelists and have a rather straightforward search like:

Code: Select all

ever|thing ext:ini;exe path:<\test\|\temp\>
That would give you at least 2 (filename patterns) * 2 (extensions) * 2 (path patterns) * 2 (file or folder) * 7 (filelists) = 108 different statistics to report. What would you like to report in such a case?


If you are mostly interested in filelists, you can:
  • Add a column File List Filename to the resultlist
    (right-click the Name header and select File List Filename)
  • Sort by File List Filename
    (Menu:View > Sort by > File List Filename)
That will show you from which File List the result is coming.

(BTW: you can drag the column headers to a different position to make the File List column more prominent)

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Sun Dec 22, 2019 7:26 pm

It seems like I expressed my idea not cleary

I meant that filelist of file is one!!
but there are many files in there

search request looks like this:
filelistfilename:<Manuel Costela - Always You>|<Ane Brun, Nudisorder - One Last Try>|<Monsoon Season feat. Miss Bee - Green On Blue>|<Eivind Jb, Mari Lu - Tropicalbahn>|<Muzzaik feat. Zaida - Work It (Dj Vartan & Techcrasher Remix)>|<Charles J - Riders On The Storm>|<Geom - Love Me Fool Me (Pete Bellis & Tommy Remix)>|<Geom - Love Me Fool Me (Pete Bellis & Tommy Remix)>|<Sherrie Sherrie, The Ware, Nina - Nana Song (Dj Antonio, Dj Renat Remix)>|<Jimmy Ruffin - What Becomes Of The Brokenhearted>|<Soul Trend - Groovy Nights>|<Charles J - Riders On The Storm>|<Yuksek & Bertrand Burgalat - Icare (Yuksek Remix)>|<The Messenger - Let It Be>

as you can see... those the names of music tracks
and when I'm looking for them in my collection, often I find just the part of the list

and I wonder, if I can get the info about the files that Everything haven't found.....

NotNull
Posts: 1790
Joined: Wed May 24, 2017 9:22 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by NotNull » Sun Dec 22, 2019 9:25 pm

I still have problems trying to understnd your situation and what you are trying to do.

This is what you are trying to find, based on your search query (that includes errors; more on that later)
  • You have a lot of EFU files
  • Those are called:
    "Manuel Costela - Always You.efu"
    "Ane Brun, Nudisorder - One Last Try.efu"
    "Monsoon Season feat. Miss Bee - Green On Blue.efu"
    etc.
  • Each EFU file contains the path to a song
  • You have added all these EFU files to Everything's index (Menu:Tools > Options > Indexes > File Lists )
  • Now you want to show the content of all the EFU filelists in your search results
I doubt if this is what you really want ....


If you want to search for these songs, you could do that with this query:

Code: Select all

"Manuel Costela - Always You" | "Ane Brun, Nudisorder - One Last Try" | "Monsoon Season feat. Miss Bee - Green On Blue"
You might have a text file with these songs, like this:

Code: Select all

Manuel Costela - Always You
Ane Brun, Nudisorder - One Last Try
Monsoon Season feat. Miss Bee - Green On Blue
Eivind Jb, Mari Lu - Tropicalbahn
Muzzaik feat. Zaida - Work It (Dj Vartan & Techcrasher Remix)
In that case, you can use Advanced Search:
  • Go to Menu:Search > Advanced Search
  • Scroll all the way down until you reach Search for a list of file names:
  • Press the [Browse] button to import your file.
  • Press the [OK] button
    In the Everything search bar something like this will be shown:
    filelist:"Manuel Costela - Always You|Ane Brun, Nudisorder - One Last Try"

    And that should give you a list of all the songs Everything was able to find on your disks.


    Is this wha you want to accomplish? (statistics aside ... )

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Sun Dec 22, 2019 9:38 pm

your second guess is closely right... but not much))

I know how to search number of files at once...

but I'm asking for possibility to see the files, that Everything didn't managed to find!!
I want to know the files that Everything was not able to find
(I wrote down two ways of expressing the idea.... because I'm not sure which of them is right... English is not my own language, unfortunaly))

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Wed Dec 25, 2019 9:18 am

No more ideas?)

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Thu Dec 26, 2019 4:10 am

Please try the following batch file:

You will need the command line interface "ES".

Create the following batch file:
find-filename-counts.bat

Code: Select all

@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & es.exe -get-result-count %%A >> %2
Create a text filelist:
example-filelist.txt

Code: Select all

abc.txt
123.exe
everything.png
where each line contains a filename.

call find-filename-counts.bat with your text filelist as a parameter, and output filename as another parameter for example:
find-filename-counts.bat example-filelist.txt out.txt

Example output:
out.txt

Code: Select all

abc.txt:12
123.exe:42
everything.png:123
This should work fine for a couple hundred filenames, it might run slowly for 1000+

I'll consider adding something like this built into Everything, thanks for the suggestions.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Thu Dec 26, 2019 6:17 pm

I'm not sure I understand these instructions...

<<call find-filename-counts.bat with your text filelist as a parameter, and output filename as another parameter for example:
find-filename-counts.bat example-filelist.txt out.txt>>

can you give some more details..?

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Thu Dec 26, 2019 6:47 pm

I downloaded the ES application

then click on exe file.... a few seconds the program listed quickly my EV base

and then disappeared...

and what should i do next ?

How I should CALL find-fn.bat test-list.txt out.txt ?

I'm confused now
I've tried through the windows cmd.... but I've got the mesasage, that ES application is not inner or something... I've note remembered unfortunaly

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Dec 27, 2019 5:49 am

You'll need to create the bat file first.
  • From the start menu, run Notepad
  • In Notepad, paste the following:
    @echo off
    for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & es.exe -get-result-count %%A >> %2
  • From the File menu, click Save As...
  • Navigate to the same location as your es.exe
  • Change the File name to: find-filename-counts.bat
  • Change Save as type to All Files (*.*)
  • Click Save.
To run this new bat file:
  • From the start menu, run cmd
  • Navigate to the same location as your es.exe, for example:
  • CD c:\es
  • Run find-filename-counts.bat with your parameters, for example:
  • find-filename-counts.bat example-filelist.txt out.txt
  • (make sure you have created your example-filelist.txt in the same location as your find-filename-counts.bat)

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Dec 27, 2019 6:54 am

it doesn't work unfortunaly

my bat file is named: find-fn.bat
my searching filelist: test-list.txt
they take place in the same folder


can you write down the exact command for cmd?
I switch the folder and stay in the the place that my ES.exe

trying to do the job using this command:
CALL find-fn.bat test-list.txt out.txt

but the program return me mistake.. something about... Error 6 - unknown switch
You do not have the required permissions to view the files attached to this post.

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Dec 27, 2019 8:22 am

Maybe one of the filenames in your filelist starts with a -

Please try escaping the parameter passed to es, change your bat file to:
@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & es.exe -get-result-count "%%A" >> %2

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Dec 27, 2019 8:58 am

Finally Works!!


I also wanted to ask
why my two computers working a bit differently with EV
One of them don't demand I surround the path with " "
another one give me the proper result only if i surround the path with " "

I'm talking about the requests when I'm looking the list of files and the request looks like this...
D:\Music\ filelistfilename:<Rufus Chaka Khan - Stay>|<Pages - Who's Right Who's Wrong>|<Don Williams - Atta Way To Go>|<WCGR Summer 2016 - WCGR Yeah...We Know People PowerPlay>|<Daryl Hall John Oates - Go Solo>|<Diana Ross - Pieces of ice>|<Quincy Jones - The dude>|<Earth Wind Fire - Let Me Talk>|<George Duke - Heroes>
"D:\Music\" filelistfilename:<Rufus Chaka Khan - Stay>|<Pages - Who's Right Who's Wrong>|<Don Williams - Atta Way To Go>|<WCGR Summer 2016 - WCGR Yeah...We Know People PowerPlay>|<Daryl Hall John Oates - Go Solo>|<Diana Ross - Pieces of ice>|<Quincy Jones - The dude>|<Earth Wind Fire - Let Me Talk>|<George Duke - Heroes>

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Dec 27, 2019 9:15 am

And, if I'm not too much persistant...

is there any opportunity to add to the BAT file information with the specific Location for searching?
I often need to get these figures based on the particular place... not in the whole EV database....

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Dec 27, 2019 11:34 am

And I also have noticed some things that you possibly will want to improve:

my filelist for example looks like this:
Klar & Pf, Diana Di - Take Me Home (Medsound Remix)
De-Phazz - Jazz Music De Capo
Free Nationals - Shibuya
Cloak Dagger, Basement Love - All Night
Blank & Jones - Grown Minds
Rsn - Bonus Track Welcome To Life Max
Jean Tonique - Sunrise (Intro)
Blank & Jones - What You Won't Do For Love
Aurys, Giacomo Bondi - Rio's Sun
Morcheeba - Sweet L.A. Da Lata
Tei Shi - A Kiss Goodbye
Melodiesinfonie - Ao Longo Do Rio
when I'm searching this list using EV... the program give me not only exact matches
for example:
filelist have this line:
De-Phazz - Jazz Music De Capo
and EV give me in result
De-Phazz, Stuba Philharmonie - Jazz Music (De Capo Edit)
the result file consists some more letters, but in fact they are the same song
(it is a typical thing when you do something with music... same files often have various spelling... )

but when I'm searching this filelist through ES... these files seem to be different
and I have in out.txt
De-Phazz - Jazz Music De Capo:0


Maybe there is the way to make ES to implement searching process like EV ?
++ I Mean to consider the files (like in example above) to be matches and don't return the value:"0" in out.txt

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Sun Dec 29, 2019 12:33 am

why my two computers working a bit differently with EV
One of them don't demand I surround the path with " "
I would need to see the file lists and results to work this one out.
Please, if you can, send them to support@voidtools.com

Some of your filelists may contain special characters used by the Everything search syntax.
Make sure your bat file has double quotes around %%A
is there any opportunity to add to the BAT file information with the specific Location for searching?
Add a path search to your ES call:
@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & c:\ES\es.exe <path-to-search> -get-result-count "%%A" >> %2

where <path-to-search> is the path to limit your results.

For example:
To limit results to "D:\music folder"
@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & c:\ES\es.exe "d:\music folder\" -get-result-count "%%A" >> %2

when I'm searching this list using EV... the program give me not only exact matches
Add the exact: modifier to your ES call:
@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & c:\ES\es.exe -get-result-count exact:"%%A" >> %2


ES uses the same search syntax as Everything.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Sun Dec 29, 2019 7:10 am

I've done changes in my BAT file

@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & es.exe "H:\__MULL SPOT BASE\" -get-result-nowfn "%%A" >> %2

and now computer return me error again after running in cmd

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Sun Dec 29, 2019 7:19 am

I'm trying to get not exact matches!

I tried to run with
-get-result-nowfn
-get-result

and both ways were not succcess

I've got mistakes: error 6.. something about switches

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Sun Dec 29, 2019 9:27 am

I'm trying to get not exact matches!
Please try the following bat file:
@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & es.exe "H:\__MULL SPOT BASE\" -get-result-count ""%%A >> %2


The "" prefix will treat %%A as a literal.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Sun Dec 29, 2019 6:57 pm

unfortunately doesn't work


file-fn text:
@echo off
for /F "tokens=*" %%A in (%1) do echo|set /p="%%A:" >> %2 & es.exe "H:\__MULL SPOT BASE\" -get-result-count ""%%A >> %2

text-list:
Klar & Pf, Diana Di - Take Me Home (Medsound Remix)
Free Nationals - Shibuya
Cloak Dagger, Basement Love - All Night
Blank & Jones - Grown Minds
Rsn - Bonus Track Welcome To Life Max
Jean Tonique - Sunrise (Intro)
Blank & Jones - What You Won't Do For Love
De-Phazz - Jazz Music De Capo
Aurys, Giacomo Bondi - Rio's Sun
Morcheeba - Sweet L.A. Da Lata
Tei Shi - A Kiss Goodbye
Melodiesinfonie - Ao Longo Do Rio
Royksopp - Sparks
Arlo Parks - Paperbacks
Kate Bollinger - Untitled
Michael Seyer - I Can't Dance
Karnaval Blues - You Come With The Rain
Chloe Martini - San Junipero
Raveena - Salt Water
Collioure - So In Love
Frank Locrasto - Montego
Hot-Q - Oriental Paradise
N O R M A L - Sunkissed
Ronny Jordan, Mos Def, Dj Spinna - A Brighter Day (Edit)
You do not have the required permissions to view the files attached to this post.

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Sun Dec 29, 2019 11:39 pm

ES mistakes the - in the filelist as a switch.

Please try the following bat:

@echo off
setlocal EnableDelayedExpansion
echo|set /p="" > %2
rem for /F "tokens=*" %%A in (%1) do echo START & for %%B in (%%A) do echo "%%B"
for /F "tokens=*" %%A in (%1) do (
set C=
for %%B in (%%A) do set C=!C!"%%B"
echo|set /p="%%A:" >> %2
REM ECHO es.exe -get-result-count !C!
es.exe -get-result-count !C! >> %2
)


This bat file breaks each line up into words.
Double quotes are added to each word and all passed to ES.

For example:
es.exe -get-result-count "Klar" "&" "Pf" "Diana" "Di" "-" "Take" "Me" "Home" "(Medsound" "Remix)"

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Mon Dec 30, 2019 7:15 am

Finally works

just a little note: the first line of the list always get :0
another ones - work fine

it's not like a big trouble... but I think you can solve this easily !)


one more point:
is it possible to insert two paths for searching?
I tried to add one... and it works
but when I put another one... operation failed
my pattern was: "D:\path1\" | "D:\path2\"
maybe I should write down these paths differently ??

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Mon Dec 30, 2019 9:26 am

Ah, the forum is eating my spaces:
There's an important space after the "%%B"

Please try the following bat:

@echo off
setlocal EnableDelayedExpansion
echo|set /p="" > %2
rem for /F "tokens=*" %%A in (%1) do echo START & for %%B in (%%A) do echo "%%B"
for /F "tokens=*" %%A in (%1) do (
    set C=
    for %%B in (%%A) do set C=!C!"%%B" 
    echo|set /p="%%A:" >> %2
    REM ECHO es.exe -get-result-count !C!
    es.exe "H:\__MULL SPOT BASE\" -get-result-count !C! >> %2
)

is it possible to insert two paths for searching?
Please use | to separate paths:
Escape | with ^|
@echo off
setlocal EnableDelayedExpansion
echo|set /p="" > %2
rem for /F "tokens=*" %%A in (%1) do echo START & for %%B in (%%A) do echo "%%B"
for /F "tokens=*" %%A in (%1) do (
    set C=
    for %%B in (%%A) do set C=!C!"%%B" 
    echo|set /p="%%A:" >> %2
    REM ECHO es.exe -get-result-count !C!
    es.exe "D:\path1\" ^| "D:\path2\" -get-result-count !C! >> %2
)

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Mon Dec 30, 2019 10:42 am

Oh my Lord... You don't guess how much I'm respecting you for your help... and your brilliant program!

two paths - works!!

and now, I will try to keep silence for some time!)

Happy New Year, Best Wishes!

See you next time!

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Mon Jan 06, 2020 9:01 am

Hi again!

I've got another idea "unfortunaly" ))

Is it possible to make ES ruturn not the number of mathes, but the value of DISC field... ?

for example: files have the info in the field DISC:
FR10S1878659
DEY471722817
DEY471722815

and ES return in out.txt
Christopher Schwarzwalder - Catjammer:FR10S1878659
Coss - Forbidden Orchard (Arutani Remix):DEY47172281
Coss - Forbidden Orchard:DEY471722815

in cases when there are several matches.... take the value of the first match

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Wed Jan 08, 2020 12:09 am

Where is the DISC field information stored?

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Wed Jan 08, 2020 7:30 am

in tags of the files
it is one of the main fields of the file .. not the extended!
You do not have the required permissions to view the files attached to this post.

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Wed Jan 08, 2020 7:32 am

Not possible with the current version of Everything, sorry.

es does not have access to id3 tags.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Wed Jan 08, 2020 7:34 am

I know that EV is able to search in tags using the command like this
album:Christmas

this is why I was dare enough to suppose that ES could do as well...

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Wed Jan 08, 2020 7:36 am

what if I will put the info from DISC field into the filename?

in pattern:
The Last Shadow Puppets - Miracle Aligner {GBCEL1600007}
or
The Last Shadow Puppets - Miracle Aligner {{GBCEL1600007

will that help us to resolve the problem?

**in cases when there were no matches - retrun the value:null
The Last Shadow Puppets - Miracle Alignersss:null

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Jan 10, 2020 3:09 am

what if I will put the info from DISC field into the filename?
Yes, you'll need to add the DISC field info to the filenames.
Add them as:
The Last Shadow Puppets - Miracle Aligner {GBCEL1600007}


This might be easier to do with powershell:

Please try creating the following es.ps1:
foreach($line in Get-Content $args[0]) {
$searchItems = '"' + $line.replace(" ",'" "') + '"'
$esResult = es.exe $searchItems -n 1
Write-Output "$($line) = $([regex]::match($esResult,'{(.*)}').Groups[1].Value)"
}


In a powershell window, navigate to the same location as your es.ps1 and run:
.\es.ps1 example-file-list.txt > out.txt

where example-file-list.txt is your filelist.
the out.txt will contain this list followed by = and the contents inside { ... }

For example, if you have the following in the example-file-list.txt:
Shadow Puppets


You have the following file/folder on disk:
The Last Shadow Puppets - Miracle Aligner {GBCEL1600007}

You should see the following output in out.txt:
Shadow Puppets = GBCEL1600007

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 5:26 am

Can you integrate one or two paths into the powershell code..?

like always I need to do these search in a particular location...

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Jan 10, 2020 5:29 am

foreach($line in Get-Content $args[0]) {
$searchItems = '"' + $line.replace(" ",'" "') + '"'
$esResult = es.exe "c:\path\to\location1\"|"c:\path\to\location2\" $searchItems -n 1
Write-Output "$($line) = $([regex]::match($esResult,'{(.*)}').Groups[1].Value)"
}


Change c:\path\to\location1\ and c:\path\to\location2\
Please make sure they are double quoted.
Please make sure there is a trailing backslash for the best performance.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 5:57 am

I've got this...
You do not have the required permissions to view the files attached to this post.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 5:59 am

Name "es.exe" haven't been recognized as a name of command...function, .. script or execution program...
Check the spelling and the path and try again

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 6:05 am

I typed this
.\es.exe

after the message

and the process started..

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 6:09 am

it's processing the whole EV base...

the path is not accepted..

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Jan 10, 2020 6:27 am

add .\ before your es.exe call in the powershell script.

Please try the following es.ps1:

foreach($line in Get-Content $args[0]) {
$searchItems = '"' + $line.replace(" ",'" "') + '"'
$esResult = .\es.exe "c:\path\to\location1\"|"c:\path\to\location2\" $searchItems -n 1
Write-Output "$($line) = $([regex]::match($esResult,'{(.*)}').Groups[1].Value)"
}

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 6:38 am

the same result...

maybe I should place these files to disc C ?
now my ES folder locates: D:\ES

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Jan 10, 2020 6:43 am

Please make sure es.exe is in D:\ES
Please make sure es.ps1 is in D:\ES

In powershell, please navigate to this folder with:
d:
cd \es

Launch es.ps1 with:
.\es.ps1 filelist.txt > out.txt

Does the same issue persist?

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 6:47 am

yes


I was doing all the same steps

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Jan 10, 2020 6:49 am

Escape the | with `|

foreach($line in Get-Content $args[0]) {
$searchItems = '"' + $line.replace(" ",'" "') + '"'
$esResult = .\es.exe "c:\path\to\location1\"`|"c:\path\to\location2\" $searchItems -n 1
Write-Output "$($line) = $([regex]::match($esResult,'{(.*)}').Groups[1].Value)"
}

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Fri Jan 10, 2020 6:51 am

Get Done!!!!

doing last try - I forgot to type .\ in the powershell command

sorry!!

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Thu Jan 16, 2020 7:21 am

One more point...

all the things you teached me, - are working FINE, but there is a little trouble

in cases, when in the list.txt there are lines containing Russian letters
the ES.exe return the wrong value... always:0

here are some example lines:
Cream Soda - Никаких Больше Вечеринок
Cream Soda - Уйди, Но Останься
Zivert - Зеленые Волны (Rafo Remix)
Луна - Лютики
Марсу Нужны Любовники - Скользим (Anton Ishutin Remix)

is there any way to fix it?
*we are talking about the .bat FILE

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Fri Jan 17, 2020 10:41 pm

Please try the following to search for Unicode text:
  • Make sure the console is using Consolas font or Lucida Console font. (Right click Window caption -> Properties -> Font) Otherwise, you may see the error "The system cannot write to the specified device."
  • In your batch file, make sure the top line is blank (or save your bat file without the UTF-8 BOM header)
  • After the first blank line, add the following line:
    chcp 65001
  • This will activate the UTF-8 code page.
  • Save your bat file as UTF-8.
  • Please make sure your filelists are saved as UTF-8.
  • Open your out.txt as UTF-8.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Sun Jan 19, 2020 1:38 am

Surprisely Easy!!

Thanks a lot!

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Thu Jan 23, 2020 6:41 am

HI again

please tell me, is there any possibility to rescan particular folder through the commands in EV
I mean, the quick rescan a folder

it can be useful in cases when the folder is the part of a big directory that is the part of the EV's folders list
and it is clear that I can rescan the whole directory visiting options... but I'm hoping for some more efficient ways to do that

I would be happy if I could type in search bar something like this
F:\Music\001\ rescan =Enter

and the program runs the quick rescan only in this folder... fast and easy!)

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Sat Jan 25, 2020 2:28 am

please tell me, is there any possibility to rescan particular folder through the commands in EV
I mean, the quick rescan a folder
Currently, no.

I've added the -rescan <path> to the next major version of Everything.
Thank you for the suggestion.

mihmann
Posts: 40
Joined: Thu Nov 14, 2019 8:57 am

Re: Any statistics after searchin the list of files? is that possible?

Post by mihmann » Sat Jan 25, 2020 4:09 pm

great to hear that!!


and can you help me again?)

Code: Select all

@echo off
setlocal EnableDelayedExpansion
echo|set /p="" > %2
rem for /F "tokens=*" %%A in (%1) do echo START & for %%B in (%%A) do echo "%%B"
for /F "tokens=*" %%A in (%1) do (
    set C=
    for %%B in (%%A) do set C=!C!"%%B" 
    echo|set /p="%%A:" >> %2
    REM ECHO es.exe -get-result-count !C!
    es.exe "D:\path1\" ^| "D:\path2\" -get-result-count !C! >> %2
)
how to exclude one of subfolders?
for example, I need to exclude from searching process the files that locate in D:\Path1\subfolder1\

what should I add to my .bat file command?
my tries were not successful (

will you help?

void
Site Admin
Posts: 5148
Joined: Fri Oct 16, 2009 11:31 pm

Re: Any statistics after searchin the list of files? is that possible?

Post by void » Mon Jan 27, 2020 6:12 am

To exclude a folder, use the !"<path>" syntax.

! = NOT

For example:
!"D:\Path1\subfolder1\"

Please try:

@echo off
setlocal EnableDelayedExpansion
echo|set /p="" > %2
rem for /F "tokens=*" %%A in (%1) do echo START & for %%B in (%%A) do echo "%%B"
for /F "tokens=*" %%A in (%1) do (
set C=
for %%B in (%%A) do set C=!C!"%%B"
echo|set /p="%%A:" >> %2
REM ECHO es.exe -get-result-count !C!
es.exe "D:\path1\" ^| "D:\path2\" !"D:\Path1\subfolder1\" -get-result-count !C! >> %2
)

Post Reply