FileLocator Pro does not have scheduling functionality built into it but you can use Windows Task Scheduler to accomplish the task. The key tool to update an index is the command line app flpidx.exe.
For example to update the index 'Emails' you could run:
flpidx.exe -path "C:\Indexes\Emails" -update
Note: The example is using the 'path' of the index instead of the 'name' to avoid the need for access to the user's 'AppData' profile.
You can then use the Task Scheduler command line app Schtasks.exe to schedule the update for 1pm on a daily basis:
schtasks.exe /Create /TN "FLPro Email Update" /TR "'C:\Program Files\Mythicsoft\FileLocator Pro\flpidx.exe' -path 'C:\Indexes\Emails' -update" /SC DAILY /ST 13:00 /RU user /IT
Breaking down the parameters:
/Create - Command to create a new task
/TN - The task name
/TR - The command to run, note the use of single quotes inside the double quotes
/SC - The schedule, e.g. HOURLY, DAILY, WEEKLY etc.
/ST - Start time
/RU - User to run the task as (see User Accounts note below)
/IT - Run only when user is logged in, alternatively you could use the /RP flag to specify the user's password
You can also use the Windows 'Task Scheduler' Desktop app to create/view/modify scheduled tasks.
The above example includes the
/IT switch to schedule the task to only run when the user is logged in, which will also run the task Interactively with the user's session. Here's what it looks like in Task Scheduler:
If, however, you want to run the task when the user is not logged in it gets a little more complicated.
Indexes are created or shared for specific user accounts so when updating an index it is important to run the update task as a user account which has been setup for the index. For example, if you try running the task as the Local System account it won't have an index configuration table, unless you specify -path, nor access to other account specific privileges such as network drives.
Run whether user is logged on or not
So, for the task to run properly non-interactively the task needs to be setup with the user's password:
Finally, if the index is either stored on a network drive or indexes network files all network credentials need to be stored with the user account. If when you try and access the network resource from, for example, Explorer and you are prompted to enter network credentials a scheduled task, which is running non-interactively and therefore can't ask for credentials, will simply fail with Access Denied.
You can use Credentials Manager to check whether or not the user's credentials for a network resource have been stored:
Network path mapping
When a task is run outside of the logon session the network mappings may not exist. You therefore either need to re-map the network drive as part of the task, e.g.
net use Z: \\server\folder
Or change your index settings to use the UNC path instead of a mapped network drive.
Distracting Console Window
If the task is 'Run only when user is logged in' then when the task starts it will pop-up a console window that can be distracting (and potentially steal input focus). To stop this from happening you can use Windows Scripting.
Step 1. Create a script
Save the following script to a file, e.g. "E:\Index.js"
var objShell = new ActiveXObject("WScript.Shell");
objShell.run("\"C:\\program files\\mythicsoft\\filelocator pro\\flpidx.exe\" -update -path \"C:\\Indexes\\Emails\"", 0, false);
Step 2. Change the Task Scheduler command to
Arguments: "E:\Index.js" /e:JScript
It will look something like this:
Now when the index updates it should happen invisibly.