0
이 줄의 메모리에 시스템이 얼마나 저장되어 있는지 알 수없고 objFile.Files.Count
과 같은 내용을 사용하여 반복 처리하는 것이 더 유용할지 여부를 알 수 있습니다. 다음 코드를 사용하면 중요한 성능 문제가 발생하는지 누구든지 알고 있습니까?FileSystemObject 컬렉션 반복을 통한 성능 튜닝
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
'Get the folder object associated with the directory
Dim objFolder
Set objFolder = objFSO.GetFolder("C:\InetPub\wwwroot")
Response.Write "The files found in " & objFolder.Name & ":<br>"
'Loop through the Files collection
Dim objFile
For Each objFile in objFolder.Files
Response.Write objFile.Name & "<br>"
Next
'Clean up!
Set objFolder = Nothing
Set objFile = Nothing
Set objFSO = Nothing