Solved

batch file to delete and rebuild index setting (Indexing Options)

Posted on 2014-12-25
6
949 Views
Last Modified: 2014-12-25
Hi,

I would like to know how to create a batch file that would delete and rebuild index setting (Indexing Options).

I normally do this manually but i would like to do the full operation trough a batch file.

I'm under windows 8.1.

Thanks for your help
0
Comment
Question by:Wilder1626
  • 3
  • 3
6 Comments
 
LVL 92

Accepted Solution

by:
John Hurst earned 500 total points
ID: 40517624
Here is the registry key that resets the index so it will rebuild.

http://brandonlive.com/2007/04/20/faq-how-to-completely-reset-wds-windows-search/

Changing the key to 0 will cause the rebuild.

So then make a batch file to include a reg command (file) and run it to rebuild the index.

I do NOT recommend it as (a) I do not need to rebuild the index except maybe once a year and (b) using Control Panel to rebuild is a deal safer.

Good luck.
0
 
LVL 11

Author Closing Comment

by:Wilder1626
ID: 40517639
Thanks for your advice.

I will keep on doing it manually then.

It is just weird that every week, i need to rebuild the Index as the hard drive gets full and when i rebuild it, it release almost 50% of the HD.
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 40517645
@Wilder1626  - Thanks.  

Here is the Windows Search location.  

C:\ProgramData\Microsoft\Search\Data\Applications\Windows

My index is just over 2 GB  (on a 500 GB hard drive) so its size is fine for me. You may be indexing more things.
0
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
LVL 11

Author Comment

by:Wilder1626
ID: 40517660
Yesterday, i did a rebuilt and today, my Windows.edb is again at 13.6 GB so far.
0
 
LVL 92

Expert Comment

by:John Hurst
ID: 40517662
Thanks for the update. I have 100,000 items indexed so you are using more items than me.
0
 
LVL 11

Author Comment

by:Wilder1626
ID: 40517665
and the funny thing is that i only have a 120 GB HD.  This is why it gets full pretty quick.

I wonder if this is a problem with windows 8.1? I'm not the only one.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Annoying "thing" blocks my view 4 81
bash script to unzip a file 5 44
Excel file not created as expected 7 48
Way to decrease size of apk file 9 42
When you upgrade from Windows 8 to 8.1 or to Windows 10 or if you are like me you are on the Insider Program you may find yourself with many 450MB recovery partitions.  With a traditional disk that may not be a problem but with relatively smaller SS…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
Windows 8 comes with a dramatically different user interface known as Metro. Notably missing from the new interface is a Start button and Start Menu. Many users do not like it, much preferring the interface of earlier versions — Windows 7, Windows X…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now