Click to See Complete Forum and Search --> : File Copying


bakshani73
January 28th, 2002, 12:39 PM
Hi,

I need to copy a large amount of files from one computer to another. In order to speed up the process I want to only copy the source files that are different then the destination. For example: copy only files with a different "last modified date," the source file could be older or newer but if it is the same than no copying should take place. Basicly I want to make a replica of the source computer as fast as possible by copying only the changed files.
If you could offer any help on how I should go about doing this it would be a big help. What scripting language would be most appropriate?
Thanks for your help.

Manish Malik
January 28th, 2002, 07:16 PM
If you make a slight change in the description of things... "the file is copied if it has been saved to disk after the last copy operation", (that is, even if someone just opened the editor and saved the file as it is again, it will be copied in next copy operation), then in Windows, a simple .BAT batch file would do that job. (hint: read about the "ARCHIVE" attribute of files in Windows..). If you are on any Linux/Unix platforum, then nothing is better than Perl/Python to do the job. :)


Manish
http://www.manishmalik.com

Discuss it all at the Developer Forum : http://www.codeguru.com/cgi-bin/bbs/wt/wwwthreads.pl?action=list&Board=devforum ...