Jump to content

_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)
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
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...