we want to know if we can and how to know if a new file is included in a directory defined by its path
Get the files count in a directory and Compare the previous with the present.
If the count is increased then new files are added .
Files count you can get by using
Directory.GetFiles(“directory path”). Length
Regards,
Mahesh
1 Like
thank you for your answers
the problem is that i need a robot that work all day and test every 2 mininute if a pdf file was add in a directory
1 Like
Hi @Nesrine,
Where you able to figure out a solution as to how a robot can listen/monitor any folder/directory structure for the arrival of new files. And if new files present run the process.
It will be really helpful.