Jump to content
Sign in to follow this  

_FileListToArray() Return full path

Recommended Posts

I've been experimenting with _FileListToArray() and it works great. But my problem: Is there a way for _FileListToArray to return the full file path (Not just the name of the file)?

Any help is appreciated, thanks! :)

Here is my code:

#Include <File.au3>

GUICreate("", 100, 500)
$List = GUICtrlCreateList("", 0, 0, 100, 500)

$Path = @WindowsDir&"\Media\"
$FileList = _FileListToArray($Path, "*.wav", 1)
For $I = 1 to $FileList[0]
    GUICtrlSetData($List, $FileList[$I])

While GUIGetMsg() <> -3

Edit: Spelling.

Edited by JustinReno

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  

  • Create New...