Move multiple files at once

hello. i want to move file using Move File Activity. But i want to move multiple files, not move 1 files. i want to move multiple, not one by one. anybody knows to help my issue? thanks


2

Hi,

You can solve it using Directory.GetFiles() Method.

  1. Use Directory.GetFiles(“Enter your folder path which contains all your files”). This will return the names of all the files in the folder.
  2. Use Assign activity to assign this result to a variable of type array of strings.
    For example,
    FileNames= Directory.GetFiles(“enter your source path”).
  3. Use Foreach activity to loop through the array(FileNames) and use Move file activity inside the loop.
  4. In Move File activity properties, enter “item” in from and enter your destination path in the destination field.