Reindexing the database in .cmd script

General discussion related to "Everything".
Karbi
Posts: 2
Joined: Sat Nov 30, 2024 8:09 am

Reindexing the database in .cmd script

Post by Karbi »

I have Everything running as a service on system startup.

I want to Force Rebuild the indexes in a .cmd script.
In the script I am using START command as given below.

START "C:\Program Files\Everything\Everything.exe -reindex"

This opens a system32 window and I have to issue EXIT command to close the window.
Everything Issue.jpg

It doesn't reindex the database.

How to make Everthing in a .cmd script, to Force Rebuild the indexes in background, without opening the system window.

Thanks in advance.
Karbi
You do not have the required permissions to view the files attached to this post.
NotNull
Posts: 5961
Joined: Wed May 24, 2017 9:22 pm

Re: Reindexing the database in .cmd script

Post by NotNull »

It's the quotes ..

Try the following instead:

Code: Select all

START "" "C:\Program Files\Everything\Everything.exe"  -reindex
The first "" is the title of the "CMD window". If not added, "C:\Program Files\Everything\Everything.exe" will be seen as the title.
Karbi
Posts: 2
Joined: Sat Nov 30, 2024 8:09 am

Re: Reindexing the database in .cmd script

Post by Karbi »

It works now.
Thanks a bunch, NotNull.
therube
Posts: 5727
Joined: Thu Sep 03, 2009 6:48 pm

Re: Reindexing the database in .cmd script

Post by therube »

It's the quotes ..
^--- made me laugh.

(Because... I just hate quotes ;-).)