thanks.. I figured out my own way to do the same thing..Maybe this can help someone also..
Update " PathSource Here ", "PathTarget Here"
Function Update(sSource, sTarget)
Dim oFSO
Dim oSource
Set oFSO = WScript.CreateObject("Scripting.FileSystemObject"
If oFSO.FileExists(sSource) Then
Set oSource = oFSO.GetFile(sSource)
If Not oFSO.FileExists(sTarget) Then
oSource.Copy sTarget, True
ElseIf oSource.DateLastModified > oFSO.GetFile(sTarget).DateLastModified Then
oSource.Copy sTarget, True
End If
Else
MsgBox "Source file does not exist!"
End If
End Function
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.