How to get count of files which are downloaded today in a folder

hi,

  1. how to get count of files which are downloaded today in a folder
  2. how to write this - Files_count is not equal to 10 in “if” avtivity.

Hi @Hemant_Deshmukh ,

Use this in assign activity.

filenameArray = Directory.GetFiles("YourFolderName").Where(Function(x) New FileInfo(x).LastWriteTime.Date = Now.Date).ToArray

image

image

Thanks,
Ashok :slight_smile:

its working–Directory.GetFiles( InputPath).Where(Function(x) New FileInfo(x).LastWriteTime.Date = Now.Date).Count

thank you

1 Like

Hi @Hemant_Deshmukh ,

You can even use this to get the file count

Directory.GetFiles(“path_to_folder”).Count(Function(file) File.GetLastWriteTime(file).Date = Today.Date)

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