Command Line Rebuild and Refresh
In PlanetPress Search version 7.3 and higher, it is possible to use the PlanetPress Search executable to refresh and rebuild your database directly from the command line.
The Command
ppsearch.exe (-rebuild|-refresh) ["c:\path\to\profile.prf"]
Parameters
- ppsearch.exe : Full path to the ppsearch executable, which is normally "C:\Program Files\PlanetPress Suite 7\PlanetPress Search\PPSearch.exe". On 64-bit systems, "Program Files" becomes "Program Files (x86)".
- (-rebuild|-refresh): Mandatory. Use -rebuild to empty the database and rescan all PDFs in the search folders, or -refresh to scan for any new PDFs in the search folders and add them to the database.
- ["c:\path\to\profile.prf"]: Optional. Specifies the search profile to be used. If no profile is specified, the default profile for the currently logged on user (C:\Documents and Settings\lachance\Application Data\Objectif Lune\PlanetPress Suite 7\PlanetPress Search\ppsearch.prf) will be used.
Example Usage
ppsearch.exe -rebuild "c:\planetpress\searchprofiles\userinvoices.prf"
Notes
- If your database requires a username and password, the credentials set in the PlanetPress Search User Options for the currently logged on user will be used.
- In order to call ppsearch.exe directly without using the full path, you can add this path in your system. This page describes how to add to your path variable (it is the same in all versions of Windows).