Copy all the files with a particular extension



I want to copy all the files with .txt extension present in the folder test.

After that, I have to paste it in some other folder copied

Thank you for sharing your ideas in advance



String() FilesList= Directory.GetFiles(“Directory_Path”,"*.text").ToArray

Then Run ForEach to the FileList
and use MoveFile Activity, there you mention the Destination where you want to move.



I have to copy the file by logging the system as a user, and I have to paste all those files by logging as an admin.

This process requires logoff and login very much


@Purvi Hi,

Please refer to below file. Thanks!

CopySpecificFiles.xaml (6.9 KB)