'获取指定路径下指定类型文件数量
Function Get_File_Count(Path_String As String, File_type As String) As Integer
Dim This_File_Path As String
Dim File_Counts As Integer
File_Counts = 0
This_File_Path = Dir(Path_String & File_type)
Do While This_File_Path <> ""
File_Counts = File_Counts + 1
This_File_Path = Dir
Loop
Get_File_Count = File_Counts
End Function
网友评论