For
i = 2 to 50
FromPatch=tabelle1.cells(5,2) & tabelle2.cells(i,4)
ToPath=tabelle1.cells(6,2)
If
Right(FromPath,1)="\" then
FromPath=Left(FromPath, Len(FromPath)-1)
End
if
If
Right(ToPath,1)="\" then
ToPath=Left(ToPath, Len(ToPath)-1)
End
if
Set
FSO=CreateObject(
"scripting.filesystemobject"
)
FSO.CopyFolder FromPath, ToPath, true
Next