hi,
check out ANT, it copies only modified files while building.

regards,
Nagarajan

On Monday 27 May 2002 11:02, you 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: mailto [EMAIL PROTECTED] with body: "signoff
> JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set
> JSP-INTEREST DIGEST". Some relevant FAQs on JSP/Servlets can be found at:
>
>  http://archives.java.sun.com/jsp-interest.html
>  http://java.sun.com/products/jsp/faq.html
>  http://www.esperanto.org.nz/jsp/jspfaq.jsp
>  http://www.jguru.com/faq/index.jsp
>  http://www.jspinsider.com

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to