Dont move files from a certain sub folder

I have a folder which consist of subfolder. Each subfolder consist of files. I want to move files from this subfolder to another folder. But i dont want to move files from ‘Completed’ and ‘2020’ folder

@ajnaraya

Then when you do get files…check if the filepath contains 2020 or completed and exclude them

Directory.GetFiles("FolderPath,DirectoryOptions.AllDirectories).Where(function(x) Not (x.Contains("\Completed\") Or x.Contains("\2020\")))

This gives the excluded list

Cheers

1 Like

@ajnaraya - You can use activity as well !!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.