Sign in to follow this  
Followers 0
JustinReno

_FileListToArray() Return full path

3 posts in this topic

#1 ·  Posted (edited)

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)
GUISetState(@SW_SHOW)

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

While GUIGetMsg() <> -3
WEnd

Edit: Spelling.

Edited by JustinReno

Share this post


Link to post
Share on other sites



:P:blink::P:)

Thanks, I can't believe I missed that! :wub:

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  
Followers 0