Skip to main content

Move or rename

Move or rename a file, or move every file the name rules choose or every file of a folder that matches a pattern and optional size and date limits, replacing or keeping existing targets.

Command in the File toolkit · id ooa.file/move · 11 inputs (2 required), 3 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
SourceFileYesSource file, name rules choosing several files, or a folder when pattern is given.
TargetFileYesNew path or name, or a folder when several files are moved.
OverwriteBooleanNofalseReplace an existing target.
Keep bothBooleanNofalseWhen the target exists and overwrite is false, use a free name such as report (2).pdf instead of stopping.
PatternStringNoMove every file in the source folder whose name matches this glob pattern; the target is then a folder. A source such as in/*.pdf works too.
Include subfoldersBooleanNofalseWith a pattern, also take matching files in sub-folders, keeping their folders under the target.
Minimum size (bytes)NumberNoWith a pattern, only files at least this large.
Maximum size (bytes)NumberNoWith a pattern, only files at most this large.
Modified afterDateTimeNoWith a pattern, only files last changed after this date and time (UTC, like every DateTime; Text to date converts local times).
Modified beforeDateTimeNoWith a pattern, only files last changed before this date and time (UTC, like every DateTime; Text to date converts local times).
Several files at onceBooleanNofalseMove up to four files at the same time; faster for many files on a network share.

Outputs​

OutputTypeWhat it is
pathFileNew path of the file (the target folder when moving several files).
countNumberNumber of files moved.
filesListNew paths of the files.