SortedFiles

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.

CodeFunctionName
What is this?

Public

Not Tested

Imported

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 Boldcodes.com

Linkedin Login

ByVal dir_path As String, Optional ByVal exclude_self As Boolean = True, Optional ByVal exclude_parent As Boolean = True

Views 957

Downloads 412

CodeID
DB ID