Mudde 0 Posted February 8, 2011 HelloI am currently trying to make a script that return all the subfolder names of a folder, here is an example Folder 1 subfolder 1 subfolder 2 subfolder 3Folder 2 subfolder 1 subfolder 2 subfolder 3Folder 3 subfolder 1 subfolder 2 subfolder 3I would like to get all the subfolder name of Folder 1, 2 and 3.I am not asking for you to make the script for me, I want that pleasure myself, I am simple looking for someone to point me in the right direction Thanks in advance Share this post Link to post Share on other sites
Andreik 66 Posted February 8, 2011 take a look When the words fail... music speaks Share this post Link to post Share on other sites
Melba23 3,457 Posted February 8, 2011 Mudde,Welcome to the AutoIt forum. If you just want to list the subfolders within a single folder then you can do it with _FileListToArray - just search each of the folders you wish to index. If you want to produce the whole tree of folders and subfolders within a path (like Explorer) then you need a recursive/iterative version - and you will find the RecFileListToArray UDF in my sig is just what you need. M23 Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind Open spoiler to see my UDFs: Spoiler ArrayMultiColSort ---- Sort arrays on multiple columnsChooseFileFolder ---- Single and multiple selections from specified path treeview listingDate_Time_Convert -- Easily convert date/time formats, including the language usedExtMsgBox --------- A highly customisable replacement for MsgBoxGUIExtender -------- Extend and retract multiple sections within a GUIGUIFrame ---------- Subdivide GUIs into many adjustable framesGUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView itemsGUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeViewMarquee ----------- Scrolling tickertape GUIsNoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxesNotify ------------- Small notifications on the edge of the displayScrollbars ----------Automatically sized scrollbars with a single commandStringSize ---------- Automatically size controls to fit textToast -------------- Small GUIs which pop out of the notification area Share this post Link to post Share on other sites
Mudde 0 Posted February 8, 2011 Thanks to both of you, It is working now ! Time for some learning Share this post Link to post Share on other sites