Skip to main content

Move File

Files & FoldersFilesWrites files

Moves a file to a new location and removes it from the original location.

Inputs

NameTypeRequiredDefaultDescription
Source File
sourcePath
fileRequired
Destination File
destPath
fileRequired
Overwrite Existing
overwriteExisting
booleanOptionalfalse
Create Missing Folders
createMissingFolders
booleanOptionalfalse
Output Variable
outputVariable
variableOptionalMoveResult

Output

$outputVariableObject

Object describing the move result. Reference {MoveResult.destinationPath}, {MoveResult.sourcePath}, {MoveResult.sizeBytes}, {MoveResult.overwritten}, or {MoveResult} alone (resolves to the destination path).

  • successBoolean
  • destinationPathString
  • sourcePathString
  • sizeBytesNumber
  • overwrittenBoolean
  • pathString

Compatibility

WindowsLinuxAttendedUnattended

Related activities