/build/static/layout/Breadcrumb_cap_w.png

Copy Files from Server - Help Needed

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

Answers (4)

Posted by: dodgy 15 years ago
Orange Belt
0
can you use robocopy.exe to achieve the copy? this can mirror a target directory against a master folder, even supports logging.
Posted by: Manu77 15 years ago
Orange Senior Belt
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.
Posted by: dunnpy 15 years ago
Red Belt
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
Posted by: dodgy 15 years ago
Orange Belt
0
If you would prefer a vbscript solution i suggest you look at the File System Object and the DateDiff function.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ