I have a folder consisting of files in the following format: File_1, File_2...File_n
When I loop through them, this is the output I receive:
File_1,File_10,File_11...
How do I order the Files using VBScript such that I receive the desired output(File_1,File_2...)?
Given below is the code I have developed so far:
Set objFSO = CreateObject("Scripting.FileSystemObject")
objStartFolder = "FilePath"
Set objFolder = objFSO.GetFolder(objStartFolder)
Set colFiles = objFolder.Files
For Each objFile in colFiles
File = File & "," & objFile.Name
Next
MsgBox File