TITLE=Command line arguments CONTENT=
Locate32.exe has the following command line arguments:
| -- | terminate parameter list |
| -P path | put 'path' to 'Look in' field |
| -p path | put 'path' to 'Look in' field (checks also that path is correct) |
| -t type | put 'type' to 'Extensions' field |
| -r | start locating when Locate32 is opened |
| -Ax | Activate control, x is 'n' (Named), 't' (Extentions), 'l' (Look In), or 'r' (results list). |
| -Vx | Set view mode, x is 's' (small icons), 'm' (medium icons), 'l' (large icons), 'x' (extra large icons), 'l' (list), or 'd' (details). |
| -c | put clipboard content to 'Named field' |
| -s | leave locate32 background when Locate dialog is closed |
| -S | start locate32 to background mode (does not open Locate dialog) |
| -i | start new instance (experimental) |
| -a | activate existing instance (use e.g. "-a2" to activate the 2nd instance) |
| -ln | set the number of maximum found files |
| -lf | Select 'File Names Only' in Advanced tab |
| -ld | Select 'Folder Names Only' in Advanced tab |
| -lfd | Select 'File and folder names' in Advanced tab |
| -lc text | put 'text' to the 'file containing text' field |
| -lcnm | uncheck 'Match case' field |
| -lw | check 'Match whole name only' field |
| -lwn | uncheck 'Match whole name only' field |
| -lr | check 'Replace spaces with asterisk' field |
| -lW | check 'Use whole path' field |
| -lrn | uncheck 'Replace spaces with asterisk' field |
| -lm size | set minimum file size |
| -lM size | set maximum file size |
| -lDmDAY | set minimum file modification date, DAY can be exact date in the form of YYMMDD, or number (0 is today, 1 is yesterday, etc) |
| -lDcDAY | set minimum file creation date |
| -lDaDAY | set minimum file last access date |
| -lDMDAY | set maximum file modification date |
| -lDCDAY | set maximum file creation date |
| -lDADAY | set maximum file last access date |
| -lsXY | sort located items where X is 'n' (sort by name), 'f' (directory), 's' (size), 't' (type) or 'd' (modified date) and Y is 'a' (ascending order) or 'd' (descending order) |
| -lP preset | load preset |
| -d file | uses database in file 'file' |
| -D name | uses database named 'name' |
| -Lpath | include path into the database |
| -L1 | include all local hard drives into the database |
| -u | start update process at start |
| -U | update database (do not open Locate dialog) |
| -RX | set the priority class of process, X is 'h' (high), 'a' (above), 'n' (normal), 'b' (below), 'i' (idle) or 'r' (realtime) |
| -X:CUSTOM | use different settings branch (see locate.ini.example file) |
| -W:search:parameters | parse Windows search protocol URL. Parameters "qyery=" and "crumb=location:" are only handled. You can also use '-WR:' (run search) and '-WQ:' (run if nonempty query string given). |
The command line arguments for locate.exe and updtdb32.exe can be seen by using "locate -h" and "updtdb32 -h" commands.