Friends,

I want to copy updated files from server to local machine. If updated it should overwrite existing one. If the file is not updated it should not copy the file to local machine.

Need a VBscipt to check whether files have been updated or not.

Can anyone please help on this.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
can you use robocopy.exe to achieve the copy? this can mirror a target directory against a master folder, even supports logging.
Answered 04/22/2009 by: dodgy
Orange Belt

Please log in to comment
0
Apologies, one more point I missed to mention.
Files should be checked when the shortcut is launched. If files are updated then it should copy the files and exe must be launched.
Answered 04/22/2009 by: Manu77
Orange Senior Belt

Please log in to comment
0
Manu77,

A quick and easy way would be a batch file that uses 'xcopy.exe' with the /d switch.

/D:m-d-y Copies files changed on or after the specified date.
If no date is given, copies only those files whose
source time is newer than the destination time.

Then at the end of the batch file call your executable file to launch your application.

Hope this helps,

Dunnpy
Answered 04/22/2009 by: dunnpy
Red Belt

Please log in to comment
0
If you would prefer a vbscript solution i suggest you look at the File System Object and the DateDiff function.
Answered 04/22/2009 by: dodgy
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity