Sign in to follow this  
Followers 0
440LVB

Apply a function to all files in a given directory

3 posts in this topic

Hello

I have a simple question, which has been for sure already answered, but I don't know what to search on this forum (I miss a keyword, English is not my first language :whistle: ).

I want to apply the same treatment (actually reading) to all the files that have the same extension (.csv) in a given directory. Basically, I have a variable that's supposed to take the name of each file, one by one.

I tried to find a function in AutoIT, but didn't see what I wanted, and I thought to use "dir <directory> >> <text file>" in command line, then read this text file, but it is a complicated way to do something I'm sure someone has already done.

Could you please give me the keywords to look for on the forum, or the links to the topics on this question? Or the name of a function I didn't see in AutoIT?

Thank you for everything.

Share this post


Link to post
Share on other sites



Have you tried _FileListToArray?

Share this post


Link to post
Share on other sites

Have you tried _FileListToArray?

Yay, that's it !

Thank you. Gotta buy glasses :whistle:

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0