Jump to content

Selecting More than One File Type in $sFilter - _FileListToArray()


Go to solution Solved by Dan_555,

Recommended Posts

Posted

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

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
×
×
  • Create New...