FileInfo Fetching Error

I am trying to get files from my local drive and fetching the file info using For Each activity and assigning each info to a variable but i am getting an error.

Pls help i have already assigned System.io.Fileinfo variable, but still i am getting an error


image

Hi @koussighan25,

Here is the right syntax:

In your case it will be:

new FileInfo(Invoice_Path)

Hope that helps !

Regards,
Nithin

Thanks a lot…

It worked after removing the period after new keyword

1 Like

Hi @koussighan25,

Do mark the response that helped you as the solution. This will help other community members find the answers they are looking for faster.

Regards,
Nithin

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.