Need help to make life easier using this great program!

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
Earl
Posts: 9
Joined: Wed Jul 05, 2023 10:04 am

Need help to make life easier using this great program!

Post by Earl »

I do not know where to ask my favor from someone, but sorry if this is not the correct place in the forum!

I have been using this wonderful tool for a couple of months now and like it much.
Furthermore, I have terabytes of data that I need to search sometimes to see if a certain file exists and where it is.

Using the program is OK, but I would prefer a batch file, that would input the file name from the keyboard and start everything.
So I would start the batch, and it would wait for my file name (or file name and extension) and then start.

The program would show the results, but the batch file would remain active, and I could then, without starting the batch file, insert a new file name and enter..... and so forth.

If I want to stop with the batch, just entering say a keyboard return without a file name it the batch would expire and stop.

I have tried to create such a batch file (for Windows 10) but cannot do it. Maybe too old and I forget too much nowadays. Used to be able to do it.

Can someone help me out?

Earl in The Netherlands
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Need help to make life easier using this great program!

Post by therube »

EFind.bat:

Code: Select all

@echo off
set people=
set /p PEOPLE="File to find: "
if [%people%]==[]   exit
ES.exe   %people%
EFind.bat

exit
Download Everything Command-line Interface, ES-1.1.0.26.zip


(Everything.exe needs to be running for ES.exe to work.)
horst.epp
Posts: 1451
Joined: Fri Apr 04, 2014 3:24 pm

Re: Need help to make life easier using this great program!

Post by horst.epp »

May I suggest

Code: Select all

@echo off
set people=
set /p PEOPLE="File to find: "
if [%people%]==[]   exit
ES.exe   %people%
%~dpnx0

exit
This way it works whatever the name of the script is.
Earl
Posts: 9
Joined: Wed Jul 05, 2023 10:04 am

Re: Need help to make life easier using this great program!

Post by Earl »

Hey therube thanks much, great that you will hep :!:
Thanks too to horst.epp!
Nice to see that you both understand the problem, well not exactly a problem.

OK, I only have a couple of questions...

1.
ES.exe
If everything is running, is that the running name from everything or do I have to replace the ES.exe with the path to everything?
I mean, I have everything.exe running, is then ES.exe a shortcut to the program?

2.
Is EFind.bat another file, or you mean that is this file name from this batch?

I tried the batch, but it did not run, thinking the program path or so.
Maybe by you, it worked, but my system is maybe not the same.

In any case, thanks for helping.

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

Re: Need help to make life easier using this great program!

Post by NotNull »

ES.exe is a separate command-line program you need to download (here).
You can put it in the same folder where the script is.
In the background, ES talks to Everything to get the results, so Everything must be running when you run this script.

FWIW, my attempt for the script (3 is better than 1 :D )
When there are more than page full of results, you can scroll through them using cursor keys or PageUp/PageDown. Press ESC when ready for the next search.


ZoekBestanden.cmd

Code: Select all

@echo off & setlocal
cls.
echo.

echo. Voer (gedeeltelijke) bestandsnaam in
echo. Of toets ENTER om af te sluiten.


:LOOP
	echo.
	echo.
	set /p NEWNAME=Volgende naam : 
	if [%NEWNAME%]==[] goto :EXIT
	ES.exe -pause "%NEWNAME%"
	set "NEWNAME="
goto :LOOP


:EXIT
horst.epp
Posts: 1451
Joined: Fri Apr 04, 2014 3:24 pm

Re: Need help to make life easier using this great program!

Post by horst.epp »

Earl wrote: Wed Jul 05, 2023 4:03 pm Hey therube thanks much, great that you will hep :!:
Thanks too to horst.epp!
Nice to see that you both understand the problem, well not exactly a problem.

OK, I only have a couple of questions...

1.
ES.exe
If everything is running, is that the running name from everything or do I have to replace the ES.exe with the path to everything?
I mean, I have everything.exe running, is then ES.exe a shortcut to the program?

2.
Is EFind.bat another file, or you mean that is this file name from this batch?

I tried the batch, but it did not run, thinking the program path or so.
Maybe by you, it worked, but my system is maybe not the same.

In any case, thanks for helping.

Earl
You have to download es.exe and put it into the Dir where Everything.exe or Everythingx64.exe file is located.
EFind.bat should be stored into the same path.
The content is of course from our code examples above.
You can start EFind.bat from a link on your Desktop or any other place.
Post Reply