I am trying to write a program that will go through two different directories. It will go through the first directory and do some file processing. After it does the processing for the first folder, I need to go through a second set of folders. Is it better or is in the best practice to create two different file system object? Currently I am using two but wanted to make sure I am following the best coding practice.
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFolder = objFSO.GetFolder(strErrorDir)
Set colFiles = objFolder.Files
Set objFSOS = CreateObject("Scripting.FileSystemObject")
Set objFolderS = objFSOS.GetFolder(strSuccDir)
Set colFilesS = objFolderS.Files