Aassdd Posted June 23, 2008 Posted June 23, 2008 (edited) How can I get the names of subfolders of a folder and put them in 1 string? Note: I want only 1 level of the folder not more. Example: (retrieve names from folder "C:/stuff") Folders tree: C:/stuff/ C:/stuff/folder1/ C:/stuff/folder1/many_other_folders_and_subfolders/ C:/stuff/folder2/ C:/stuff/folder2/again_other_folders/ C:/stuff/folder3/ C:/stuff/folder3/more_folders/ Returned string: "folder1, folder2, folder3" Edited June 23, 2008 by Aassdd
Valuater Posted June 23, 2008 Posted June 23, 2008 Maybe... #Include <File.au3> #Include <Array.au3> $FileList=_FileListToArray(@DesktopDir, "*", 2) If @Error=1 Then MsgBox (0,"","No Files\Folders Found.") Exit EndIf _ArrayDisplay($FileList,"$FileList") 8)
Aassdd Posted June 23, 2008 Author Posted June 23, 2008 (edited) Thanks Err, not exactly, I want to have all returned array[0,1,2,3,...] in one string. Solved with _ArraytoString Edited June 23, 2008 by Aassdd
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