JustinReno Posted January 6, 2008 Share Posted January 6, 2008 (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 WEndEdit: Spelling. Edited January 6, 2008 by JustinReno Link to comment Share on other sites More sharing options...
Valuater Posted January 6, 2008 Share Posted January 6, 2008 #Include <File.au3> GUICreate("", 400, 500) $List = GUICtrlCreateList("", 0, 0, 400, 500) GUISetState(@SW_SHOW) $Path = @WindowsDir&"\Media\" $FileList = _FileListToArray($Path, "*.wav", 1) For $I = 1 to $FileList[0] GUICtrlSetData($List, $Path & $FileList[$I]) Next While GUIGetMsg() <> -3 WEnd 8) Link to comment Share on other sites More sharing options...
JustinReno Posted January 6, 2008 Author Share Posted January 6, 2008 Thanks, I can't believe I missed that! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now