How to make operate the code for large number of files

P.S. And if you’re not sure, there is the Newbies category