...
Code Block |
---|
Supersede.exe Folder P:\Projects\P123\Exports\2022-02-03 |
The Folder
command supports the search pattern option (-s
or --Search
...
-Pattern
):
Code Block |
---|
Supersede.exe Folder P:\Projects\P123\Exports\2022-02-03 --Search-Pattern *.pdf |
Anchor | ||||
---|---|---|---|---|
|
...
Code Block |
---|
P:\Projects\P123\Exports\2022-02-03 P:\Projects\P123\Exports\2022-02-03\DWGs |
The Folders
command supports the search pattern option (-s
or --Search-Pattern
):
Code Block |
---|
Supersede.exe Files Folders.txt --Search-Pattern *.pdf |
Anchor | ||||
---|---|---|---|---|
|
Anchor | ||||
---|---|---|---|---|
|
-s
or --Search-Pattern
Specifies a file search pattern for matching files to be processed in a specific folder or list of folders.
Code Block |
---|
Supersede.exe Folder P:\Projects\P123\Exports\2022-02-03 --Search-Pattern *.pdf |
In the above example the search pattern will restrict the set of files processed from the specified folder to only the files that have the .pdf
extension.
The search pattern can contain a combination of valid filename characters and wildcard (*
and ?
) characters, but it doesn't support regular expressions.
Anchor | ||||
---|---|---|---|---|
|
-d
or --Dry-Run
Performs a dry run showing the actions that would be performed without actually executing them.
Code Block |
---|
Supersede.exe Files Files.txt --Dry-Run |
...
With dry run enabled, the utility will report that a operations have been Skipped
.
Anchor | ||||
---|---|---|---|---|
|
-o
or --Overwrite
Instructs the Supersede utility to overwrite existing files without prompting for confirmation.
Code Block |
---|
Supersede.exe Files Files.txt --Overwrite |
If the overwrite option is not enabled and an operation would cause a file to be overwritten then the utility will prompt for confirmation:
...
If the quiet option is enabled, and overwrite is not, then the operation will be skipped with a File already exists
message:
...
Anchor | ||||
---|---|---|---|---|
|
-p
or --Prompts
Specifies whether to display various optional confirmation prompts.
Code Block |
---|
Supersede.exe Files Files.txt --Prompts File |
...
Value | Meaning |
---|---|
| No additional prompts will be displayed. File overwrite confirmation prompts will still be displayed when necessary unless the overwrite option is enabled. This is the default value. |
| Displays a single confirmation prompt before any operations are performed. This is useful in scenarios where the Supersede utility is run automatically as part of another process (for example, as a Post Processing Command) and you sometimes want to skip it. |
| Displays a confirmation prompt before processing each file. |
| Displays a confirmation prompt before each file delete operation. |
| Enables all optional confirmation prompts. |
Values other than None
can be combined, for example:
Code Block |
---|
Supersede.exe Files Files.txt --Prompts Execute,Delete |
Anchor | ||||
---|---|---|---|---|
|
-q
or --Quiet
Suppresses all prompts and file overwrite confirmation prompts.
Anchor | ||||
---|---|---|---|---|
|
-v
or --Verbosity
Specifies the verbosity of information messages.
Value | Meaning |
---|---|
| Only information messages, warnings and errors will be displayed |
| Debugging messages will also be displayed |
| Additional debugging messages will be displayed, and messages will be more detailed |
Anchor | ||||
---|---|---|---|---|
|
...
Configuration | -c
, --Config
or --Configuration
Specifies a folder specific configuration file to be used. The utility will ignore all other configuration sources.
Code Block |
---|
Supersede.exe Files Files.txt --Configuration D:\Test\.supersede-config |
Anchor | ||||
---|---|---|---|---|
|
-u
or --Use-Default-Configuration
Instructs the utility to use the default configuration sources (for example, any application level configuration in the global Supersede.json
file (if it exists), and any relevant folder specific .supersede-config
files) in addition to the configuration specified with the configuration option (--Configuration
).
Code Block |
---|
Supersede.exe Files Files.txt --Configuration D:\Test\.supersede-config --Use-Default-Configuration |
Anchor | ||||
---|---|---|---|---|
|
-?
, -h
or --help
...