I am writing a script to find the size of the file in a folder. While using get_file_attribute(C:\test\,'size'); function, I am getting syntax error and I don't find an error in this function. Have anyone used this function before within DI.
Try putting single quotes around the filename.
Thank you it worked. Could you please also tell me I need to find out the size of list of files and I guess for that a parameter needs to be defined. How do we declare it in DI?
can you explain why you want the file size please - the best way to do this depends on why you want the file size and what you plan to do with it once you have it,
I am trying to get the size of all the files listed in a folder so that I can send an email notification to the list of users in case it is 0 byte.
Login to follow, like, comment, share and bookmark content.