Copy all the files with a particular extension


#1

Hello

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


#2

@Purvi

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.

Regards,
Mahesh


#3

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


#4

@Purvi Hi,

Please refer to below file. Thanks!

CopySpecificFiles.xaml (6.9 KB)