seems very off-topic but ... If you've got Unix / unix commands for windowssss
try rsync. It will do exactly what you want. Run it over ssh with a public /private password key pair and you can batch it very nicely. D Kesav, Ramesh wrote: >Hi all, > > pardon me if it is out of topic. But i need this urgently. > I have 2 folders say A and B. i need to copy the contents of A and its >subdirectories into B. > The copying should take care of the following things. > > 1) if the copied contents is the same as that of the already existing one >then the file in B should not get overwriten. > for this i need to capture the date and time of the file in A. > > 2) also the folder A can reside in any of the geographical locations say >for ex in USA. i need to track the modified date and time of the file in A >and compare with that of the > file in B. > > if it has changed then i should overwrite it else i should not. > > i need to create this as a batch file and then run it thru java program as >a scheduled task. > > i tried to use XCOPY but in vain. > > any open source for this will be highly helpful to me. > > >Regards >Ramesh Kesavanarayanan >[EMAIL PROTECTED] > >=========================================================================== >To unsubscribe, send email to [EMAIL PROTECTED] and include in the body >of the message "signoff EJB-INTEREST". For general help, send email to >[EMAIL PROTECTED] and include in the body of the message "help". > > > =========================================================================== To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff EJB-INTEREST". For general help, send email to [EMAIL PROTECTED] and include in the body of the message "help".
