[ASP ] 檔案列表順序

看板Visual_Basic作者 (We will Wii)時間17年前 (2008/08/07 09:08), 編輯推噓1(100)
留言1則, 1人參與, 最新討論串1/1
最近我寫了一個檔案列表(這應該是ASP.net吧??) <%@ Import Namespace="System.IO"%> <%@ Page Language="VB"%> <html> <head> <title>TEST</title> </head> <body> <% Dim dirInfo As DirectoryInfo = New DirectoryInfo(Server.MapPath("/test")) Dim subFiles() As FileInfo = dirInfo.GetFiles() Dim subFile As FileInfo For Each subFile In subFiles If InStr(1,Ucase(subFile.Name),".XLS")>0 then Response.Write("<a href=/test/"+subFile.Name+">"+subFile.Name+"</a><BR>") End If Next %> </body> </html> 如果要將檔案排列的順序用檔名倒過來排 也就是 10.xls 9.xls ... 1.xls 的順序應該怎麼做 THANKS^^ -- 封條▎███████████████████ ˍˍˍˍˍˍ ˍˍˍˍ |Google搜尋| |好手氣| 所有網頁  ̄ ̄ ̄ ̄ ̄ ̄  ̄ ̄ ̄ ̄ 1. http://www.deltactn.com/Seal/seals.htm -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.136.43.137

08/08 12:39, , 1F
For i = subFiles.Count() -1 To 0 Step -1
08/08 12:39, 1F
文章代碼(AID): #18cah_ED (Visual_Basic)