Avatar of omsudha

asked on 

FileSystemObject GetFolder() Not Retrieving Files In The Way They Are Stored !!

I have done something like this in the asp code
<% Path = "/products" ----------A VALID PATH---------------------
Set fso = Server.CreateObject("Scripting.FileSystemObject")      
Set ts=fso.GetFolder(Server.MapPath(Path)) %>
 <% For each File in ts.files
 <td><font size=2><a href><%=File.Name%></a></font></td>

Actually the files stored in the Products folder on the Web-Server are all in an alphabetical manner but when they are displayed using this asp, there is no sequence at all, though the folder product from which FileSystemObject has picked all the files is arranged.

Thanks and Regards,

Avatar of undefined
Last Comment

8/22/2022 - Mon