Folder File Count

Hi Team,

please help for how to Count Folder File when file name same but last contains only change

C22489568_SA1
C22489568_SA2
C22489568_SA3
C22489568_SA4
C22489568_SA5

like above file Name count 5
thanks in advance

Hello @Ram-Gurav
Refer to this Link.

Count Number of File inside Folder

Hope it Helps.

Regards,
Saloni

thanks For Reply

but i want particular file name count just like below

Ram-1
Ram-2
Ram-3
ABS-1
ABS-2

total 5 file
Ram=3
ABS=2

@Ram-Gurav Try directory.GetFiles(FolderPath,“C22489568*”).count.ToString

thank You so much its work

directory.GetFiles(FolderPath,“C22489568*”).count.ToString

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.