Your For Each should say “For Each item in files”, or better yet “For Each file in files” (that way the variable is more descriptive). Directory.GetFiles returns an array of String objects so make sure the type property on the For Each is set to String.
Then, inside the loop either item or file will give you the filenames one at a time, depending on what you chose the loop variable to be. You can do item.Contains(“Confirm”) or file.Contains(“Confirm”) to do your filename check.
Hi @alinghi100
you were almost done buddy
but we need small correction to be made
–the first reason the input given to the for each loop is a array of string
so inside the for each loop we will be accessing each value in that array…right
and this individual value is obtained from item the variable in for each loop
so we need to mention as item.ToString.Contains(“Confirm”)
but we have mentioned as file.name.contains(“Confirm”), which is not right buddy
Kindly try this and let know for any queries and clarfication
And even in move file activity mention the source file path as item.ToString and mention the destination path as you want with buddy
Cheers @alinghi100