FilesCount_Swift

Count how many files in a folder, with no loop, faster if you just need all types of files in that folder.
For more advanced version check FilesIn_Count


Public

Tested

My Own Work
Function FilesCount_Swift(dFolder)
Set fs = CreateObject("Scripting.FileSystemObject")
fileCount = 0
' myDir = Server.MapPath(HTMLFolder) ' "C:\DATA\Sourcefiles\Department2\"
Set folder = fs.GetFolder(dFolder)
Set Files = folder.Files
FilesCount_Swift = Files.Count
Set fs = Nothing
Set folder = Nothing
Set Files = Nothing
End Function

HTMLFolder (Unmapped location as in "/images/")

Views 2163 Downloads 763

Classic ASP File System
ANmarAmdeen
718
Attachments
Revisions

v2.0

Needs