How to find excel file size in MB

Hi,

how to find the size of an excel file using UiPath activities
please some one help me

Thanks in advance

Hi @jai_kumar2

Check this

Regards

Hi @jai_kumar2 Check below code,

File Size in KB = (New System.IO.FileInfo(“PassYourFilePath”).Length)/1024

File Size in MB = (New System.IO.FileInfo(“PassYourFilePath”).Length)/1048576

Hope this might help you :slight_smile:

3 Likes