|
-
Dec 27th, 2024, 07:03 PM
#4
New Member
Re: Fastest Copy Operation
changed get files to enumerate, for 69024 file across 1163 folders and 2139 sub folders on our network drive - very slow.
directory.getfiles took an hour, enumerate less than 10 minutes
here is the code
Dim fileentry7 As FileInfo
' Dim fileentry8 As FileInfo() = di3A.EnumerateFiles("*", SearchOption.AllDirectories)
Dim files = di3A.EnumerateFiles("*", SearchOption.AllDirectories)
For Each fileentry7 In files
PrintLine(2, fileentry7.FullName & vbTab & fileentry7.Name & vbTab & fileentry7.Length)
Next
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|