Jump to content

_FileListToArray help needed


Recommended Posts

Hi,

I'm using _FileListToArray to create an array listing .ini files in a specific folder, problem is, I want only the file named Settings.ini and any Files named Data#.ini where # is actually a number, I don't want any other .ini file that may be there even though it shouldn't be there to be included in the array.

Is it possible to use multiple filters in _FileListToArray? or is there another way to do what I'm looking for?

My current code:

$IniList = _FileListToArray(@ScriptDir & "\Settings", "*.ini", 1, False)
_ArraySort($IniList, 1, 1)
_ArraySort($IniList, 0, 2)
$IniOptions = _ArrayToString($IniList, "|", 1)

 

Thank you.

Ron Vollach
Microsoft Certified Professional (MCP)
Creator of Ultimate Conversion Compressor (UCC)
UCC Wikia

Link to comment
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
 Share

×
×
  • Create New...