Find
The Find internal command can be used to:
Display the Find Panel where you can perform file searches
Automate the Find Files function to perform simple searches without displaying a user interface
Automate the Duplicate File Finder function
Command Arguments:
Argument | Type | Possible values | Description |
---|---|---|---|
(no argument) | - | - | Display the Find Panel. It will open in whichever mode you last used it. Example: |
ADVANCED | /S | (no value) | Display the Find Panel in Advanced mode. Example: |
ANYWORD | /S | (no value) | Use when automating Find Files to enable the Any Word option for name searching. For example, if this was turned on and you used "cat dog" as the NAME argument, Opus would match filenames containing "cat" or "dog" (or both, in any order). This saves you having to construct complicated OR wildcard patterns. Example: |
ARCHIVES | /S | (no value) | Search inside archive files (when the Find Files function is being automated). Example: |
BOTHWAYS | /S | (no value) | When automating the Synchronize tool with the SYNC argument, this lets you turn on the Copy files in both directions option. //Example:// See the SYNC argument for an example. |
CASE | /S | (no value) | Use when automating Find Files to specify that the NAME argument should be treated as case-sensitive, similar to the related checkbox in the UI. Example: |
CLEAR | /O | (no value) | Clear previous results (when the Find Files function is being automated). The output file collection will be cleared before the new Find begins. Example: |
no | Do not clear previous results. Example: | ||
COLLNAME | /K | <collection name> | Specify the name of the file collection that results are added to. If not supplied the default collections (Find Results and Duplicate Files) are used. Example: |
COLUMN | /K | <column name> | When automating the duplicate finder tool with the Example: |
name | Match duplicates by name as well as the value of the specified column Example: | ||
size | Match duplicates by size as well as the value of the specified column Example: | ||
COMPARE | /K | size | When automating the Synchronize tool with the SYNC argument, this lets you select to compare files by size. By default it will look for different sizes; you can also specify size,smaller or size,larger. //Example:// See the SYNC argument for an example. |
date | When automating the Synchronize tool with the SYNC argument, this lets you select to compare files by date. By default it will look for different dates; you can also specify newer. This can also be combined with size. | ||
compare | When automating the Synchronize tool with the SYNC argument, this lets you select to compare files by comparing the file data (hash). | ||
COMPUTERS | /S | (no value) | Launch the Windows Search for Computers function (depending on your version of Windows, this may have no effect). Example: |
CONTAINING | /K | <search text> | Specify text to search for (when the Find Files function is being automated). Example: |
CONTANYWORD | /S | (no value) | Use when automating Find Files to specify that the CONTAINING argument should be handled in "any word" mode, similar to the related checkbox in the UI. Example: |
CONTCASE | /S | (no value) | Use when automating Find Files to specify that the CONTAINING argument should be treated as case-sensitive, similar to the related checkbox in the UI. Example: |
CONTIGNOREDIACRITICS | /S | (no value) | Use when automating Find Files to specify that the CONTAINING argument should ignore diacritics (accent marks), similar to the related checkbox in the UI. Example: |
CONTNOPARTIAL | /S | (no value) | Use when automating Find Files to prevent partial word matching for the CONTAINING argument (contents must then match the pattern you specify exactly). Example: |
CONTWILD | /S | (no value) | Use when automating Find Files to specify that the CONTAINING argument should be treated as a wildcard, similar to the related checkbox in the UI. Example: |
CONTREGEXP | /S | (no value) | Use when automating the Find Files function to specify that the CONTAINING argument should use regular expressions, similar to the related checkbox in the UI. Example: |
CONTUTF8 | /S | (no value) | When automating the Find Files function, plain text files will be assumed to be UTF-8 if no BOM is detected (similar to the related checkbox in the UI). Example: |
DELETE | /O | (no value) | When automating the Synchronize tool with the SYNC argument, this lets you turn on the Delete destination files that aren't in the source option. //Example:// See the SYNC argument for an example. |
first | Also turns on the Delete before copy option. | ||
DSTCOMPENSATION | /S | (no value) | When automating the Synchronize tool with the SYNC argument, this lets you select to ignore one hour time differences (daylight savings time) when comparing timestamps. //Example:// See the SYNC argument for an example. |
DUPES | /S | (no value) | Automates the Duplicate File Finder. Example: |
EXCLUDEHIDDEN | /O | (no value) | Excludes hidden folders (those with the H attribute set) from the search. Example: |
no | Does not exclude hidden folders. Use this to override a saved preset. Example: | ||
EXCLUDESYSTEM | /O | (no value) | Excludes system folders (those with the H and S attributes set) from the search. Example: |
no | Does not exclude system folders. Use this to override a saved preset. Example: | ||
FILTER | /S | (no value) | Indicates that the value of the NAME argument is the name of a pre-defined filter. This lets you automate more complex searches than just those based on filename and containing text. Example: |
FILTERDEF | /K/R | <filter> | Lets you define a filter in text format. Similar to the FILTER argument, you can automate more complex searches than just those based on filename and containing text - however the filter does not need to be predefined. This is a /R argument and so everything after the FILTERDEF keyword will be treated as the argument's value. Example: |
FROM | /K | <path> | When automating the Synchronize tool with the SYNC argument, this lets you specify the folder that is the source of the synchronize operation. //Example:// See the SYNC argument for an example. |
HERE | /S | (no value) | When automating the Find tool, performs the search below the current folder. Example: |
HIDEUNAFFECTED | /S | (no value) | When automating the Synchronize tool with the SYNC argument, this lets you select to hide unaffected files once the comparison process has run. //Example:// See the SYNC argument for an example. |
IGNOREDIACRITICS | /S | (no value) | Use when automating Find Files to specify that the NAME argument should ignore diacritics (accent marks), similar to the related checkbox in the UI. Example: |
IGNORELINKS | /S | (no value) | When automating the Duplicate File Finder, this lets you turn on the Ignore hard links option. Example: |
IGNORESECONDS | /S | (no value) | When automating the Synchronize tool with the SYNC argument, this lets you select to ignore seconds when comparing timestamps. //Example:// See the SYNC argument for an example. |
IN | /K/M | <search location> ... | Specify the folder or folders to search in when automating a search. Remember that if the paths contain a space you must enclose the value in quotes. Example: |
LOADPREV | /K | no | Disable the loading of previous find settings when the Find panel opens. By default, the Find panel will remember its previous settings when it opens unless it has been invoked via an automated search (i.e with both IN and NAME arguments specified). Use this argument to prevent the command ever remembering its previous settings. Example: |
yes | Force the Find panel to load its previous settings even when opened by an automated search. This does not restore multiple search paths, however - LOADPREV=all must be specified for that. Example: | ||
all | Forces the Find panel to remember its previous settings, and also restores all paths that were previously listed in the search list. Example: | ||
MD5 | /O | (no value) | Search for duplicates using the MD5 checksum (used with the DUPES argument). The default behaviour is to search based on filename and size. Example: |
<percentage> | Only calculate checksums based on a percentage of the file's contents. This can dramatically speed up duplicate checking for large files, at the expense of some accuracy. Example: | ||
cache | Use the checksum cache for large files. If a file's checksum has previously been cached and the file does not appear to have changed, the cached value will be used instead of recalculating its checksum. Example: | ||
MINSIZE | /K/N | <size> | When automating the Duplicate File Finder, this lets you set the value of the Minimum size field. The value is given in kilobytes. Example: |
NAME | <filename> | This is the default argument for the Find command, which means you do not need to use the NAME keyword before it (unless you are searching for a word which is recognized as another argument keyword). Specify the filename or wildcard pattern to search for. To automate the Find Files function you must specify both the NAME argument, and the location to search using the IN argument. The NOWILD, ANYWORD and NOPARTIAL arguments can be used to control whether or not wildcards, "any word" or partial matching are used when searching names, similar to the checkboxes in the UI. You can start the wildcard pattern with regex: to use regular expressions instead of wildcards. (Do not specify the NOWILD argument in this case.) You can also search using a pre-defined filter by providing the filter name for the NAME argument and also specifying the FILTER switch. Example: When used with the DUPES argument, this lets you provide a filename filter for the duplicates search. When used like this, you can specify a regular expression pattern by prefixing the wildcard with the regex: prefix. Example: | |
NAMEONLY | /O | (no value) | Search for duplicates based on filename only (used with the DUPES argument). The default behaviour is to search based on filename and size. Example: |
noext | Search for duplicates based on filename only, ignoring their file extensions. Example: | ||
NOAUTORUN | /S | (no value) | Lets you prevent an automated search from taking place - instead, the Find, Duplicates or Synchronize panel will open with the controls initialised but allow you to make further changes before starting the search. For example, when both the NAME and IN arguments are provided, the Find Files operation normally begins automatically. To prevent this, specify the NOAUTORUN argument as well. Example: |
NOPARTIAL | /S | (no value) | Use when automating Find Files to prevent partial name matching (names must then match the pattern you specify exactly). Example: |
NOWILD | /S | (no value) | Use when automating Find Files to prevent wildcard name matching. Like the similar checkbox in the UI. Example: |
NUMBERGROUPS | /S | (no value) | The Duplicate Finder creates groups for each set of duplicate files found, and normally these groups are named after the criteria used for the duplicate search. If you turn this option on then each group of duplicates will be numbered (from 1 to X, in the order they are found). Example: |
OF | /K/M | <file to match> ... | Specifies one or more files to search for duplicates of. If you don't use this argument, all duplicate files in the specified locations will be found. Remember that if the file path you are providing contains spaces, you must enclose the value in quotes. Example: |
OFFLINE | /S | (no value) | When automating the Duplicate File Finder, this lets you turn off the Ignore offline files option (the default for this option is on). Example: |
ONLYEXISTING | /S | (no value) | When automating the Synchronize tool with the SYNC argument, this lets you select to only synchronize existing files. //Example:// See the SYNC argument for an example. |
PRESET | /K | <preset name> | Loads the specified Find, Synchronize or Duplicates preset. Other arguments you provide will override the preset settings - for example, you can use the IN argument to override the search path. Specify the NOAUTORUN argument to prevent the operation from starting automatically. Example: |
!list | Generates a list of saved presets (acts as a dynamic button). Selecting an item from the list will open the appropriate panel and run the specified preset. Example: | ||
faves | Modifies the generated list of presets to only display those you have marked as favorites. Example: | ||
nofaves | Modifies the generated list of presets to exclude those you have marked as favorites. Example: | ||
nogroups | Displays the generated list of presets as a flat list rather than separating them up into any groups you may have created. Example: | ||
QUERY | /K/R | <query string> | Performs a search in the specified location using the Windows Search system. If used on its own, without other arguments, it is like typing a query string into the search field at the top-right of the lister to search below the current folder. You can also run a Windows Search query on a specified folder or into a custom results collection. Everything which follows the QUERY argument will be passed to Windows Search as the query string, so it must be the last argument to the command. Example: |
RECURSE | /O | (no value) | When automating the Find Files, Duplicate File Finder or Synchronize Files functions, the search will extend into sub-folders below the specified locations. Example: |
no | Prevent the search from extending into sub-folders. Example: | ||
REGEXP | /S | (no value) | When automating the Find Files function, enables regular expressions for the value of the NAME field. Example: |
RUNINPANEL | /S | (no value) | Normal automation of the Find command causes it to run in the background, without a visible user interface. The RUNINPANEL argument lets you open the Duplicate Finder or Synchronize panel, initialise it with other arguments (including loading a preset), and then automatically start the operation in the user interface, exactly the same as clicking the "go" button manually. Contrast this with NOAUTORUN which will open the panel but not start the operation. Example: |
SAVEQUERY | /S | (no value) | When you are currently viewing the results of a Windows Search query, this command will save the search as a stored query collection. Example: |
SHOWRESULTS | /K | source | Display the results of the automated search in the current source file display or Lister. Example: |
dest | Display the results in the destination file display. Example: | ||
tab | Display the results in a new tab. You can combine this with the source or dest arguments. Example: | ||
SIMPLE | /S | (no value) | Display the Find Panel in simple mode. Example: |
SIZEONLY | /S | (no value) | Search for duplicates based on file size only (used with the DUPES argument). The default behaviour is to search based on filename and size. Example: |
SYNC | /O | (no value) | In conjunction with other arguments, this lets you automate the Synchronize tool. The other relevant arguments are FROM, TO, BOTHWAYS, DELETE, COMPARE, IGNORESECONDS, DSTCOMPENSATION, HIDEUNAFFECTED, ONLYEXISTING. This process requires the use of multiple commands. |
ltr | Performs the synchronize from left-to-right rather than source-to-destination. | ||
TO | /K | <path> | When automating the Synchronize tool with the SYNC argument, this lets you specify the folder that is the destination of the synchronize operation. //Example:// See the SYNC argument for an example. |
UAC | /O | (no value) | Enables UAC prompts if elevation may be required to search inside folders. ``Find *.txt UAC IN D:\` |
no | Suppresses UAC prompts, skipping folders you don't have access to. (This is the default, so it doesn't normally need specifying. Can be useful if you want to override a preset which enables UAC prompts.) ``Find PRESET=DocFiles UAC=no IN D:\` |
最后更新于