How do you properly encapsulate BOOLEAN search string for command line searches?

0 votes

I am unable to find a way to encapsulate a fairly complex BOOLEAN search string for the command line scanner. As an example, this is my BOOLEAN search string, which works fine in the full GUI File Locator:

(Johnson OR JTF) AND ("Arizona State University" OR ASU) AND ("mold
manage" OR "growth manage" OR threat*)

I have tried -c "" and -c [] to no avail. Here is the command line string I am using:

flpsearch.exe -c "(Johnson OR JTF) AND ("Arizona State University" OR ASU) AND ("mold manage*" OR "growth manage*" OR threat*)" -o c:\temp\output.txt -oa -oft -ofr:file-keywords -idxname Index -idxpath "C:\Program Files\Mythicsoft\INDEX" -ceb

And the errors I get when I run this command-line:

FileLocator Pro - Command Line Search [Version 8.2.2736.1]
Copyright (c) 2017 Mythicsoft Ltd. All rights reserved.

Unexpected command line parameter: State
Unexpected command line parameter: University OR ASU) AND (mold
Unexpected command line parameter: manage* OR growth
Unexpected command line parameter: manage* OR threat*)

Please help, I have SO MUCH work to do and processing it all manually through the GUI scanner just is not feasible.

asked Dec 29, 2017 by buckzor (30 points)

1 Answer

0 votes

You need to 'escape' any quotes you wish to pass as parameters, e.g.

flpsearch.exe -c "JTF AND (\"Arizona State University\" OR ASU)"
answered Dec 29, 2017 by dave (53,670 points)
Yes, sorry, I figured that out after posting this by searching for other command line examples in the QA site but was unable to cancel or answer my question as it was under review.
...