以文本方式查看主题

-  Foxtable(狐表)  (http://foxtable.com/bbs/index.asp)
--  专家坐堂  (http://foxtable.com/bbs/list.asp?boardid=2)
----  [求助]文件夹下的文件个数  (http://foxtable.com/bbs/dispbbs.asp?boardid=2&id=162400)

--  作者:2425004926
--  发布时间:2021/4/13 15:03:00
--  [求助]文件夹下的文件个数
文件夹下的文件个数
         dim s as Integer = 0
         For Each File As String In FileSys.GetFiles(ProjectPath & "Attachments\\" & f)
            If file IsNot Nothing Then
                s = s +1
            End If
        Next
       s即是文件夹下文件个数,有没有更直接的函数

--  作者:有点蓝
--  发布时间:2021/4/13 15:10:00
--  
Output.Show(FileSys.GetFiles(ProjectPath & "Attachments\\" & f).count)
--  作者:2425004926
--  发布时间:2021/4/13 15:23:00
--  
谢谢!