Jump to content

exclude files starting with $


Recommended Posts

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 by Sarah2016
Link to comment
Share on other sites

  • Moderators

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!

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
 Share

  • Recently Browsing   0 members

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