I am trying to copy a few folders from different directories into another single directory.
I am using the copy folder method but I get a type mismatch error.
I think it turns the strings into an array but i cannot figure out how to handle the value in the FoldersList variable after that
I am using VBscript
Dim oFSO : Set oFSO = CreateObject("Scripting.FileSystemObject")
Const Folders = "C:\Dest1,C:\Dest2,C:\Dest3"
Dim FoldersList : FoldersList = Split(Folders,",")
oFSO.CopyFolder(FoldersList), "C:\DestinationDirectory\"