Private Type FILEINFO
FileName As String
FileTime As Date
End TypePrivate Sub Command1_Click() Dim buf As String
Dim FInfo() As FILEINFO
Dim count As Integer
Dim Path As String
Path = "I:\"
buf = Dir("I:\" & "*.*")
count = 0
Do While buf <> ""
If buf <> "." And buf <> ".." Then
ReDim Preserve FInfo(count)
FInfo(count).FileName = buf
FInfo(count).FileTime = FileDateTime(Path & buf)
count = count + 1
End If
buf = Dir
Loop
MsgBox count
End Sub
排序自己写吧
FileName As String
FileTime As Date
End TypePrivate Sub Command1_Click() Dim buf As String
Dim FInfo() As FILEINFO
Dim count As Integer
Dim Path As String
Path = "I:\"
buf = Dir("I:\" & "*.*")
count = 0
Do While buf <> ""
If buf <> "." And buf <> ".." Then
ReDim Preserve FInfo(count)
FInfo(count).FileName = buf
FInfo(count).FileTime = FileDateTime(Path & buf)
count = count + 1
End If
buf = Dir
Loop
MsgBox count
End Sub
排序自己写吧
解决方案 »
- 不知道sqlserver数据库的sa密码,能否用ado连接上数据库呢?客户端可以连接上吗?
- 怎么在insert ....values()输入变量
- 关于 ListView
- 想用以下语句rs.Open strSQL, cn, adOpenStatic, adLockOptimistic
- 如何用身份证判断年纪~!(在线等待)
- 如何在XP下屏蔽热键??高手帮帮忙。。谢谢。。。
- 怎么学习VB
- 请问4位的数字用双字节ASCII码怎么表示?
- 怎样成为一个程序员?
- 如何控制弹出菜单的方向(向上或向下)
- Crystal Report中用不同的纸张,如A4或Letter纸张打印时兼容问题
- 高分求dos下foxbase,可用即加分!
Do While buf <> ""
If buf <> "." And buf <> ".." Then
ReDim Preserve FInfo(count)
FInfo(count).FileName = buf
FInfo(count).FileTime = FileDateTime(Path & buf)
count = count + 1
End If
buf = Dir
Loop