etidd Posted July 23, 2023 Posted July 23, 2023 Hi all, Newbie here. Is it possible to target more than one file type in the $sFilter parameter of _FileListToArray? local $fileList = _FileListToArray("C:\Users\*Username*\Desktop\Game Pics", "*.gif", 1) The above line is the only way it will work. I cannot target more than one file type with a comma separating another value or inside another set of quotes (which generates a syntax error). I guess another option is to make multiple arrays for more than one file type. The objective is to copy three different file types and copy them to another folder (updating my saved game files). Thank you. -ty
Guest Posted July 23, 2023 Posted July 23, 2023 1 hour ago, etidd said: Is it possible to target more than one file type in the $sFilter parameter of _FileListToArray? Take a look at https://www.autoitscript.com/autoit3/docs/libfunctions/_FileListToArrayRec.htm
Solution Dan_555 Posted July 23, 2023 Solution Posted July 23, 2023 You can use the local $fileList = _FileListToArrayRec("C:\Users\*Username*\Desktop\Game Pics", "*.gif;*.jpg;*.png", 1) Some of my script sourcecode
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now