I have one folder called “Input” again in that i have 3 folders and in each folder i have 2 subfolders and in that subfolders i have some files and i want to check how many files in subfolder1 are same in subfolder2 i want the count…And i want to check this for all 3 main folders in input folder…please help
Hi @Aparna_30 ,
You can use for each to get all file name, folder name
Path.GetFileName(folder.ToString)
Directory.GetFiles(strFolderName)
Regards,
LNV
I am not able to see this
Try using for each folder in folder activity
Regards,
Both classic and modern works for me
I am not able to see what you did actually the ss size is too small
Main.xaml (13.2 KB)
Hello @Aparna_30
If im not wrong you want the Count of same files in subfolder1 and subfolder 2, in each of the 3 Main Folders inside the Input Folder.
For that you can use the For Each folder in Folder and 2 for each folder in files activity and compare the Files. If the files are same then, you can increment the count variable.
I have attached the Screenshots of the Workflow below:
I have also Attached the Xaml File below:
Main.xaml (13.2 KB)
I hope this Helps, Please let me know if you have any query.
Regards:)