Auto-shutdown after daily rescan

Discussion related to "Everything" 1.5 Alpha.
Post Reply
huouer
Posts: 3
Joined: Mon Dec 16, 2024 3:49 am

Auto-shutdown after daily rescan

Post by huouer »

I need to rescan my network drivers daily after office time. It takes me about 4 hours /day. Is there any way to auto shutdown my computer after Everything 1.5 finishes the rescan? Is it possible to add the function in Everything 1.5?
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Auto-shutdown after daily rescan

Post by void »

Please consider the following BAT file:

Code: Select all

Everything.exe -exit
Everything.exe -reindex -exit
shutdown -t 0 -s -f
This BAT file will:
Make sure Everything is not running.
Trigger Everything to reindex
Once the reindex completes and is saved to disk, Everything will exit.
Shutdown your PC.



For Everything 1.5, this can be simplified to:

Code: Select all

Everything64.exe -reindex -exit -wait
shutdown -t 0 -s -f
-reindex
-exit
-wait
huouer
Posts: 3
Joined: Mon Dec 16, 2024 3:49 am

Re: Auto-shutdown after daily rescan

Post by huouer »

Thank you for your timely response, Void.
I have scheduled to rescan some of my network drivers in Everything 1.5. I don't need to rescan all network drives every day. Your bat file will reindex all drives, right?
void
Developer
Posts: 17152
Joined: Fri Oct 16, 2009 11:31 pm

Re: Auto-shutdown after daily rescan

Post by void »

Correct.

Everything doesn't have an option to exit after updating a folder index.
I have put on my TODO list to add a command line option to update a folder index, wait for the update to complete and exit Everything.
huouer
Posts: 3
Joined: Mon Dec 16, 2024 3:49 am

Re: Auto-shutdown after daily rescan

Post by huouer »

thank you very much, Void.
Post Reply