File count in Current folder

I have created one bot where i wanted to put the message box for how many file have been processed
ActiveDirecotry.Getfiles([CurrentFolder]) is not giving result

Hi @aslam.sayyed

Directory.GetFiles(“Filepath”).count

Regards

Thanks Pravin, i used the but getting an error
then i used the the current folder instead of “Path”

now i am getting below error

getting the error message cannot assign from type ’ system.int32’ to type ‘Uipath.Excel.ExcelValue’in assign activity’Save For Later’

Hi @aslam.sayyed

Assign filesCount[int32variable]= Directory.GetFiles(“fullPath”).count

Regards

Just to make sure, you are trying this in StudioX right??