How-to: Add remove locations to the Windows [Vista/7] Search Index from the command line

command linedesktop-searchsearch-indexingwindows 7windows-search

Despite there being the popular GUI way of doing this from the Control Panel (Indexing Options) applet, which can also be reached through Windows Explorer > Options, I would like to add/remove locations to the Windows [Vista/7] Search Index from the command line

For Instance:

C:\> windowssearch.exe index add "D:\the\full\path\to\a\specific_folder"

and/or

C:\> windowssearch.exe index remove "D:\the\full\path\to\a\specific_folder"

Best Answer

for add Folder to indexing list,you need install Windows SKD (6 or 7). and indexing in win xp diffrent with indexing in vista / seven . the download Link SDK is (1 GB)