mike1950r Posted July 10, 2021 Share Posted July 10, 2021 (edited) Hi, 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 July 10, 2021 by mike1950r Link to comment Share on other sites More sharing options...
Solution mike1950r Posted July 10, 2021 Author Solution Share Posted July 10, 2021 OK, found by myself: _FileListToArrayRec($sFolderPath, "*|*.txt|$RECYCLE.BIN", $FLTAR_FILES ... Cheers mike 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