Dim DirInfo As DirectoryInfo = New DirectoryInfo("c:\test")
For Each File In DirInfo.GetFiles("test.*")
Response.Write("Name=" & File .Name & "<BR>")
Next
參考資料:
http://fecbob.pixnet.net/blog/post/38610253-vb.net%E6%AA%A2%E6%9F%A5%E6%AA%94%E6%A1%88%E6%98%AF%E5%90%A6%E5%AD%98%E5%9C%A8%E5%8F%8A%E5%88%AA%E9%99%A4%E6%AA%94%E6%A1%88
http://www.programmer-club.com.tw/showSameTitleN/vbdotnet/10081.html
0 意見: