cancel
Showing results for 
Search instead for 
Did you mean: 

Getting syntax error in script

Former Member
0 Kudos

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.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello

Try putting single quotes around the filename.

Michael

Former Member
0 Kudos

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?

Former Member
0 Kudos

Hi,

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,

regards,

Adrian

Former Member
0 Kudos

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.

Answers (0)