Get a sorted list of files in a directory using the File System Object (FSO) and Quick sort
Keywords directory, dir, sorted, quick sort, File System Object, FSO
Categories Algorithms, Files and Directories
Make a new File System Object. Use it to get a Folder object representing the directory of interest. Use that object's Files collection to get the file names.
Then sort the names using Quick sort.
' Return an array containing the names of the files in the directory sorted alphabetically.
Access is limited.
Login here using your Linkedin account. to see or download code.
No registration, not another password to remember, login using your Linkedin account and have access to all public codes in Mydevlib.com
Linkedin LoginByVal dir_path As String, Optional ByVal exclude_self As Boolean = True, Optional ByVal exclude_parent As Boolean = True
Views 958
Downloads 412
CodeID
DB ID