Sarah2016 Posted December 5, 2016 Posted December 5, 2016 (edited) Anyone help me to modify the following script so that: 1. It excludes all files starting with $__ 2. It excludes all files in the script directory Local $Folder = _FileListToArrayRec("D:\Documents", "*.doc*", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_SORT, $FLTAR_FULLPATH) Thanks Edited December 5, 2016 by Sarah2016
Moderators JLogan3o13 Posted December 5, 2016 Moderators Posted December 5, 2016 This works for me: #include <Array.au3> #include <File.au3> Local $Folder = _FileListToArrayRec(@DesktopDir & "\Test", "*.doc|$_*", $FLTAR_FILES, $FLTAR_RECUR, $FLTAR_SORT, $FLTAR_FULLPATH) _ArrayDisplay($Folder) "Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball How to get your question answered on this forum!
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