Jump to content
Sign in to follow this  
jayfry

Help With _FileListToArrayRec Filter for result. Multiple filters must be separated by ";"

Recommended Posts

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. 

Share this post


Link to post
Share on other sites
$aArray = _FileListToArrayRec($sAutoItDir, "*.url||MSN*;*.url||Microsoft*", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_NOSORT, $FLTAR_FULLPATH)

Try this, no tested

Share this post


Link to post
Share on other sites

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])

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...