As you can know, you can sort files in windows explorer by their names, But it seems VBScript is not showing them in sorted way.
Here is a sample script which show file names in a folder one by one
Set objFSO = CreateObject("Scripting.FileSystemObject")
strReg = "C:\Users\Smart\Desktop\Files"
Set objFolder = objFSO.GetFolder(strReg)
Set colFiles = objFolder.Files
For Each objFile in colFiles
WScript.Echo ObjFile.Path
Next
But it seems it is showing files in random ways. How Can I edit this script to show files just as they are sorted in windows explorer?
Just note that My Files' Names are unicode