Forum Discussion
ankit shukla
May 25, 2020Iron Contributor
Check file size and take desired action
I have location where a software saves an Excel File for me. ( I control the location, time and other things)
I have a powershell script already that emails this file to my Outlook Groups.
I need to see if i can add another code before emailing which compares/analysis the size of the file , lets say the file is 500 BYtes ( no data in the file) , then do not email or the next code doesn't execute/
if it is more than 500 bytes, then yes, execute the next line of code.