windows - Extract Sorted File Names By Alephabets -
As you can know, you can sort files in Windows Explorer with your names, but it seems that VBSPs are not showing them sorting
set objFSO = CreateObject ("Scripting.FileSystemObject") strReg = "C: \ Users \ Smart \ Desktop Files" Set objFolder = objFSO.GetFolder (strReg ) Set colFiles = objFolder.Files colfiles for each objFile next to WScript.Echo ObjFile.Path
but it seems it is showing files in random ways to files For Ane Can I edit the script, I like that they are sorted in Windows Explorer?
Just note that my files are unicode
as FileSystemObject files are not sorted (Cf. the quote), you have to write your own code (do not have to edit) Start for a sample using an ArrayList (and list of alternative methods). The first link shows how dir / A: -D / B / O: ...
.
Comments
Post a Comment