phew Posted August 30, 2007 Share Posted August 30, 2007 hi, i got following problem: in C:\misc\music there are x folders (called: "riddims", "albums", etc.), i want to save each folder's name in an array or variable. how do i do that? $search = FileFindFirstFile("C:\misc\music\*.*") If $search = -1 Then Exit EndIf While 1 $file = FileFindNextFile($search) If @error Then ExitLoop msgbox(0, "", $file) WEnd FileClose($search) msgbox every folder name, but how to save them in an array or each name into an variable? Link to comment Share on other sites More sharing options...
Gif Posted August 30, 2007 Share Posted August 30, 2007 (edited) #include <File.au3> $Flst = _FileListToArray("C:\misc\music\", '*', 2) For $h = 1 To $Flst[0] MsgBox(0, '', $Flst[$h]) Next Edited August 30, 2007 by Gif Link to comment Share on other sites More sharing options...
phew Posted August 30, 2007 Author Share Posted August 30, 2007 thank you! 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