Everything index some path?

General discussion related to "Everything".
Post Reply
wu_yi
Posts: 10
Joined: Sun Dec 26, 2021 2:16 am

Everything index some path?

Post by wu_yi »

1、After launching Everything,it indexs anything , it would be spend much times。I only want to index c:\test and c:\test1, how to do in command line?
2、how to know when indexing is done? need to poll Everything_IsDBLoaded?if I want to use in cmd,Can it achieve it?
void
Developer
Posts: 15516
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything index some path?

Post by void »

1). You would need to setup a custom Everything.ini
  • In Everything, from the Tools menu, click Options.
  • Click the NTFS tab on the left.
  • Uncheck Automatically include new fixed volumes.
  • Uncheck Automatically include new removable volumes.
  • For each NTFS volume:
    • Uncheck Include in database.
  • Select C:
  • Check Include in database.
  • Change Include only to: C:\test;c:\test1
  • Click the ReFS tab on the left.
  • Uncheck Automatically include new fixed volumes.
  • Uncheck Automatically include new removable volumes.


2). Poll Everything_IsDBLoaded to determine when indexing is complete.

See ES source code for an example with -timeout command line option.
You could use ES too, eg:

es.exe -timeout 60000 -get-result-count
(this will block for up to 1 minute and return when the index is ready)



Index This
wu_yi
Posts: 10
Joined: Sun Dec 26, 2021 2:16 am

Re: Everything index some path?

Post by wu_yi »

1、I want use %homepath% variables in the path,how to do?echo ntfs_volume_include_only=c%homepath%\test 》everything.ini?
2、I don't understand timeout 6000?It mean es.exe waiting for 1 minute,then run next command?if indexing can't complete in 1 minute,it will get error result?
void
Developer
Posts: 15516
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything index some path?

Post by void »

1) Please try the following commands:


echo ntfs_volume_guids=>> Everything.ini
echo ntfs_volume_paths=C:>> Everything.ini
echo ntfs_volume_include_onlys=C:%HOMEPATH%\test>> Everything.ini


2) ES -timeout will block (wait) for Everything to load/create the index before returning.

So you may wish to do something like the following:

es.exe -timeout 60000 -get-result-count

--This call will not return until Everything has loaded or created the index.--
--The next call will commence as soon as the above call returns--

myEverythingProgram.exe



2B) if indexing can't complete in 1 minute,it will get error result?

Yes, ES.exe will set the errorlevel.
Check to see if the wait was successful (0), or timed-out (8)
wu_yi
Posts: 10
Joined: Sun Dec 26, 2021 2:16 am

Re: Everything index some path?

Post by wu_yi »

I want to index two folder
echo ntfs_volume_guids=>> Everything.ini
echo ntfs_volume_paths=C:>> Everything.ini
echo ntfs_volume_include_onlys=C:%HOMEPATH%\test;C:%HOMEPATH%\test1>> Everything.ini
it show error,
echo
ntfs_volume_include_onlys="C:%HOMEPATH%\\test;C:%HOMEPATH%\\test1”>> Everything.ini
also error, it seem divide %HOMEPATH% by \\
What should I do?
void
Developer
Posts: 15516
Joined: Fri Oct 16, 2009 11:31 pm

Re: Everything index some path?

Post by void »

Please try the following:

echo ntfs_volume_include_onlys=C:%HOMEPATH%\test";"C:%HOMEPATH%\test1>> Everything.ini
Post Reply