Hi everyone,
I'm having troubles with the FileSystemObject. I have two servers and I use
the FSO to make a backup from one to another. The connection between this
servers are too fast (1gbps) but, when I use the FSO with the CopyFile
method, this files are copied at no more than 10mbps. It's very slow. I
think that is a kind of problem that have the FSO and I ask you about if
there is another method to do it. I copy here a part of my vbs code
Thanks in advance,
Gregorio Aranda.
fichero_origen = subfolder.path & "\" & objFile.name
fichero_destino = replace(subfolder.path,carpeta_inicio,carpeta_destino) &
"\" & objFile.Name
Set fecha = objFSO.GetFile(fichero_origen)
fecha_fichero = fecha.DateCreated
if datediff("d",fecha_fichero,now())<14 then
if not objFSO.fileexists(fichero_destino) then
objFSO.CopyFile fichero_origen,fichero_destino,true
sw=0
end if
else
objFSO.DeleteFile (fichero_origen)
if objFSO.fileexists(fichero_destino) then
objFSO.DeleteFile (fichero_destino)
end if
end if