Reindexing the database in .cmd script

General discussion related to "Everything".
Post Reply
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
Everything Issue.jpg (34.28 KiB) Viewed 394 times

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
NotNull
Posts: 5517
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: 5056
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 ;-).)
Post Reply