jayfry Posted February 20, 2019 Share Posted February 20, 2019 Hello, I'm trying to use _FileListToArrayRec to filter out my results. I'm able to get it to include *.url, and exclude folders starting with MSN however if i try to get it to Also exclude folders beginning with Microsoft, it includes everything again. This currently returns the file path for all files that have *url in the name, and are not part of the MSN folder. $aArray = _FileListToArrayRec($sAutoItDir, "*.url||MSN*", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH) This is currently not working $aArray = _FileListToArrayRec($sAutoItDir, "*.url||MSN*||Microsoft*", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH) I can see in the _FileListToArrayRec doc that "Multiple filters must be separated by ";"", but i can't figure out how to format it. Any help would be appreciated. Link to comment Share on other sites More sharing options...
Subz Posted February 20, 2019 Share Posted February 20, 2019 (edited) $aArray = _FileListToArrayRec($sAutoItDir, "*.url||MSN*;Microsoft*", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH) Edited February 20, 2019 by Subz jayfry 1 Link to comment Share on other sites More sharing options...
Nine Posted February 20, 2019 Share Posted February 20, 2019 $aArray = _FileListToArrayRec($sAutoItDir, "*.url||MSN*;*.url||Microsoft*", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH) Try this, no tested jayfry 1 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Screen Scraping Multi-Threading Made Easy Link to comment Share on other sites More sharing options...
jayfry Posted February 20, 2019 Author Share Posted February 20, 2019 Thanks! Link to comment Share on other sites More sharing options...
Subz Posted February 20, 2019 Share Posted February 20, 2019 There can only be three separators: $sMask [optional] Filter for result. Multiple filters must be separated by ";" Use "|" to separate 3 possible sets of filters: "Include|Exclude|Exclude_Folders" Include = Files/Folders to include (default = "*" [all]) Exclude = Files/Folders to exclude (default = "" [none]) Exclude_Folders = only used if $iRecur = 1 AND $iReturn <> 2 to exclude defined folders (default = "" [none]) Link to comment Share on other sites More sharing options...
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