Hello!
I want to get the total count of file’s which is available in folder’s so how can i get that?
i got the each files count from folder’s,Know i want the total count from all the folder’s files.
Hello!
I want to get the total count of file’s which is available in folder’s so how can i get that?
i got the each files count from folder’s,Know i want the total count from all the folder’s files.
@Priyesh_Shetty1
Use a assign activity like this
int_count = Directory.GetFiles(“yourfolderpath”).Count
Where int_count is a variable of type int32 defined in variable panel
@lrtetala I want the total count of the files from all the folder’s
@lrtetala I got the each count of the files from folder’s but know i want total of all the files.
@Priyesh_Shetty1
I think all sub folders are in one main folder
then give Main Folder name in for each
@lrtetala yes have created one folder inside that there are different different folder’s inside that folder’s there are files
@lrtetala I have given the path of that main folder only but it is giving the output of each folder’s count.
@Priyesh_Shetty1
Try this
Hi,
How about the following expression?
System.IO.Directory.GetFiles("yourFolderPath","*.*",searchOption.AllDirectories).Length
Regards,
As per your requirement I have attached the workflow of the process below and the steps.
totalCount=0
folderPath= "your folder path"
Directory.GetDirectories(folderPath)
totalCount= totalCount + Directory.GetFiles(folderPath).Length
totalCount
variable as needed in writeline or message Box.Hope it helps!!
Regards,
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.