Jump to content

_FileListToArray - Filter Items


 Share

Recommended Posts

Im using _FileListToArray(@DesktopDir) and i want to know if i can filter it so i can only see .txt files in my listview

ALSOO!! is there a way to refresh the list every time ( text files will be saved on the desktop from time to time)??

Link to comment
Share on other sites

I think:

#include <File.au3>
#Include <Array.au3>

$FileList = _FileListToArray(@DesktopDir, "*.txt")

If @Error Then
    MsgBox (0,"","No Files\Folders Found.")
    Exit
EndIf
_ArrayDisplay($FileList,"$FileList")

EDIT: For refreshing the list view, some code would help...

Edited by Bert
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...