Sort order of folders collection



Dear Readers,

Can anyone explain the following.
I use the loop below to get a list of folders in "path":

For Each folder In fso.GetFolder(path).SubFolders
aString = aString & "<BR>" & folder.name
next

For some reason on WinXP the folders collection is appearantly sorted by
name.
On a Win2k it is ordered by (creation?) date. (Same version of Wsh...)

Is there somewhere where I can/should define the sortorder?
Or must I code a sorting routine myself?

Tia, Jean.


.



Relevant Pages

  • Re: Need help setting up remote desktop.
    ... if your Web server is registered with the WINS server as ... Is there any particular reason you want to use the web based method? ... those folders, the way I can with the people who are on the home network ... however, as of this writing, I have not finished reading the instructions ...
    (microsoft.public.windowsxp.network_web)
  • Re: Which folders are shortcuts?
    ... XP sets up these folders for a reason.. ... for what appears to be multiple entries.. ... Some of the folders are 'system protected' and for good reason.. ... computer illiterates download stuff and don't know where its gone, ...
    (microsoft.public.windowsxp.basics)
  • Re: How can I get all folders to show date modified?
    ... For some reason I can't send you all my data. ... This shouldn't apply this time since all the folders are empty. ... test agent 194 5 481 mb ... I can't understand how it can have an invalid path since I just put in the ...
    (microsoft.public.windowsxp.general)
  • Re: XP SP2
    ... On my system, it is there, but by some reason ... > whereby you would not be able to view contents of System folders. ... > On my pc's I have Windows Explorer set to be able to let me view ... > hidden files and folders. ...
    (microsoft.public.windowsupdate)
  • Re: Using VbScript For Add-On Log On Script
    ... the reason I don't want to use shortcuts is that I am trying do this for myself and about 10 other guys. ... I figure I can make a batch file and place it in the "P:\ or Public Drive" that will copy the vbscript file into their Startup folders. ... I would not be hindering EDS in any way as I wouldn't necessarily be deleting any of the EDS created drives. ... I figured that if I can manually rename the drives I should also be able to do it programmatically, via my own login script that I would put into the Startup Folder. ...
    (microsoft.public.windows.server.scripting)

Loading