VollachR Posted June 7, 2018 Posted June 7, 2018 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 VollachMicrosoft Certified Professional (MCP)Creator of Ultimate Conversion Compressor (UCC)UCC Wikia
behdadsoft Posted June 7, 2018 Posted June 7, 2018 Hi. You should use _FileListToArrayRec and can add custom filter to only record .ini files. VollachR 1
VollachR Posted June 7, 2018 Author Posted June 7, 2018 Alright, thanks, I didn't notice _FileListToArrayRec can have multiple file masks, I managed to do what I needed with it, thanks. Ron VollachMicrosoft Certified Professional (MCP)Creator of Ultimate Conversion Compressor (UCC)UCC Wikia
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