Jump to content
Sign in to follow this  
Komawoyo

_FileListToArray - Filter Items

Recommended Posts

Komawoyo

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)??

Share this post


Link to post
Share on other sites
BrettF

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

Share this post


Link to post
Share on other sites
Komawoyo

ty for your help...i got the refreshing thing i wanted to work...its pretty simple..it just keep getting whats on your desktop to the listbox

Share this post


Link to post
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
Sign in to follow this  

×