Skip to main content

For each file in folder

Files & FoldersFolderscontainerWrites files

Repeat actions for every file inside a folder

Inputs

NameTypeRequiredDefaultDescription
Folder Path
folderPath
folderRequired
File Filter
fileFilter
stringOptional
Include Subfolders
includeSubfolders
booleanOptionalfalse
Sort By
sortBy
enumOptionalname
namedatesize
Current File Variable
currentFileVariable
variableOptionalCurrentFile
File List Variable
outputVariable
variableOptionalFolderFiles

Output

$outputVariableArray

List of files found in the folder. Each element is an object with .path, .name, .extension, .sizeBytes, .modifiedDate. Use {CurrentFile.name} inside the loop, or {FolderFiles[0].path} after it.

  • pathString
  • nameString
  • extensionString
  • sizeBytesNumber
  • modifiedDateString

Compatibility

WindowsLinuxAttendedUnattended

Related activities