Jump to content

_FileListToArrayRec How to exclude fles and folders ?

Go to solution Solved by mike1950r,

Recommended Posts


is there a way to exclude files AND folders?

I know to exclude files I use:

_FileListToArrayRec($sFolderPath, "*|*.txt", $FLTAR_FILES ...

to get all files exclude "*.txt" files.

To exclude folders I use:

_FileListToArrayRec($sFolderPath, "*||$RECYCLE.BIN", $FLTAR_FILES ...

to get all files and exclude the "$recycle.bin" folder.

But how can I exclude "*.txt" files AND also the "$recycle.bin" folder?

Thanks for assistance.

Cheers mike

Edited by mike1950r
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

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...