Command Line

Top  Previous  Next


FileLocator Pro's start up values can be altered through information passed in the command line. If an output file is specified then the actual User Interface is not displayed and the results are streamed directly to the file. Alternatively, there is also a console version of the program which displays information on the console instead of through the Windows user interface.


Windows application:


FileLocatorPro.exe [saved search] | -o [output file] | -oa | -oc | -ol [num] | -oe? | -of? | -ofr:? | -ofrs:? | -ofxslt [XSLT file] | -os | -r | -d [folder name] | -c [containing text] | -f [file name] | -cm | -fm | -s | -fd | -fx | -cr | -pa | -po | -ma [datetime] | -mb [datetime] | -a? | -view [file] | -idxname [name] | -idxpath [path] | -h | -?


Console application:


flpsearch.exe [saved search] | -o [output file] | -oa | -oc | -ol [num] | -oe? | -of? | -ofr:? | -ofrs:? | -ofxslt [XSLT file] | -os | -d [folder name] | -c [containing text] | -f [file name] | -cm | -fm | -s | -fd | -fx | -cr | -pa | -po | -ma [datetime] | -mb [datetime] | -a? |  -idxname [name] | -idxpath [path] | -h | -?






Attributes: -aa=Archive, -ac=Compressed, -ae=Encrypted, -ai=Index, -af=Folder, -ah=Hidden, -ao=Offline, -ar=ReadOnly, -asys=System, -asp=Sparse


Text to search for in specified files (i.e. the Containing Text field)


Contents expr type: -ceb=Boolean, -cex=Regular Expression, -cee=Plain Text, -ceh=Boolean RegEx, -cew=Whole Word, -cefh=File Hash


Contents expression spans file (only valid with Boolean expressions)


Match case when contents searching


Directory(s) to search (i.e. the Look In field), use -dw for current working directory


File names to search for


File name expr type: -fed=DOS, -fex=Regular Expression, -feb=Boolean, -fee=Plain Text, -feh=Boolean RegEx, -few=Whole Word


Match case when comparing file names


File name shows the file names to exclude


Look In expr type: -leb=Boolean, -lex=Regular Expression, -lee=Plain Text


Name of index to search - case sensitive.


Path of index to search


Modified after date value, pass "now" as the date to use the current date and time


Modified before date value, pass "now" as the date to use the current date and time


Output filename (runs the search without showing the FileLocator Pro GUI streaming results directly to the file)


Append to output file


Output content lines


Output encoding: -oea=ASCII, -oe8=UTF-8, -oeu=Unicode, -oe8nb=UTF8 (no BOM), -oeub=Unicode (big endian)


Output format: -oft = Text (default), -ofc = CSV, -ofb = Tab, -ofbs = Tab (Spreadsheet), -ofx = XML, -ofh = HTML,  -oflsx = Search Session


Output format report: -ofr:files, -ofr:contents, -ofr:keywords, -ofr:file-keywords, -ofr:errors


Output report style: -ofrs:standard, -ofrs:tabulated


Output custom format XSL Transform


Maximum number of found lines per file to output


Output surrounding lines of text


Always use command line parameters when creating new or opening existing searches

Note: This option can be used to force a criteria value to be preset to a certain value whenever the user creates a new search, regardless of the previously used value.



Overwrite configuration with configuration stored in saved search criteria file.

Note: Configuration settings, such as active compressed file types (e.g Zip) or character processing settings, are not normally loaded from the SRF file. This option forces the loading of the configuration settings from the SRF file, effectively setting FileLocator Pro to the identical state it was in when the SRF file was saved.



Override values from file when loading from file AND specifying command line parameters


Start search immediately (implied by -o option)


Regular expression type: -rep=Perl syntax, -rec=Classic syntax


Resets the user interface to the default size and position, ie toolbars, menu, docked windows etc. are reset to the installation defaults.


Search subfolders


Open a file in the Internal Viewer (use -viewline and -viewcol to specify line and column)

-h or -?

Show the help dialog



To switch an option off append 'n' to the flag, e.g.

 FileLocatorPro.exe -fmn Switches OFF match case when comparing files


When performing an index search using the -idxXX flags only the -c flag is used to further restrict the search. Other search criteria such as -a, -f, -ma etc. are ignored.




To launch FileLocator Pro with the Look In field pre-filled with "C:\Documents and Settings\user\My Documents" the command line arguments would be:


FileLocatorPro.exe -d "C:\Documents and Settings\user\My Documents"


To run a search looking for files that match *.sys in the folder C:\WINDOWS without launching the usual user interface but instead streaming the results directly to an output file the command line arguments would be:


FileLocatorPro.exe -d "C:\WINDOWS" -f "*.sys" -o "c:\temp\results.txt"


To launch FileLocator Pro with Search subfolders switched off and Match case on contents searching switched on the command line arguments would be:


FileLocatorPro.exe -cm -sn



Indexing Utility



Indexes can be created, updated, or recreated via the console application:


flpidx.exe -name [index name] | -path [path to index store] | -recreate | -update | -create | -cf | -d [locations] | -ds | -f [file types] | -fd | -fm | -fma | -fnc | -verbose | -help


-name [index name]

Name of the index to perform the operation on.

-path [path to index store]

Path to the location of the index


Re-create the index


Update the index with changes found


Create a new index



Enable case-sensitive searching

-d [locations]

Semi-colon list of locations to index


Index standard document locations

-f [file types]

File types for indexing (e.g. *.doc;*.docx;*.txt)


Index standard document files types


Index Outlook PST/MSG files


Index email attachments


Include file names for non-content file types


Index the files now



Show help information


Show detailed information of files being indexed






To update the 'Emails' index the command line would be:


flpidx.exe -name "Emails" -update


To recreate the index stored in 'C:\Indexes\Shared' the command line would be:


flpidx.exe -path "C:\Indexes\Shared" -recreate


To create a new index stored in 'C:\Indexes\New' the command line would be:


flpidx.exe -create -name "New Index" -path "C:\Indexes\New" -ds -fd -i


Copyright © 2016 Mythicsoft Ltd. All rights reserved.
Help file version: 8.0

PDF and CHM versions of this help file are available here: