Actually you can change the file's last modified timestamp from java if the
process running the java program has write permissions on the file.
Just use setLastModified(long l) from the File class.


>From: Juan Pablo Lorandi <[EMAIL PROTECTED]>
>Reply-To: Juan Pablo Lorandi <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: auto run
>Date: Mon, 27 May 2002 19:13:28 +0100
>
>A couple of statements(I usually use IMHO, but this time 'round I'm
>sure)
>
>You cannot tamper with the file's last modified timestamp from java.
>Hence, making a directory synchronizer is difficult in java.
>Rsync has some problems with high latency networks. This would be the
>case with Ramesh's problem.
>
>I have a product almost finished that does this whilst remaining pure
>java. However, it's on a closed beta so far.
>If anybody is interested, please email me privately for details.
>
>Juan Pablo Lorandi
>Chief Software Architect
>Code Foundry Ltd.
>[EMAIL PROTECTED]
>
>Barberstown, Straffan, Co. Kildare, Ireland.
>Tel: +353-1-6012050  Fax: +353-1-6012051
>Mobile: +353-86-2157900
>www.codefoundry.com
>
>
> > -----Original Message-----
> > From: A mailing list for Enterprise JavaBeans development
> > [mailto:[EMAIL PROTECTED]] On Behalf Of Richard S.Martin
> > Sent: Monday, May 27, 2002 12:11 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: auto run
> >
> >
> > Why?
> >
> >         Platform independence.
> >         Single one-language code base.
> >         Java API already has the required functionality
> >
> > But mostly because,
> >
> >         As the guy said, DOS can't do it.
> >
> > If the wheel is broken, or doesn't do what it claims to
> > (because some marketing guy thought square ones would be
> > easier to sell) then re-invent it!
> >
> >
> >
> > On Monday 27 May 2002 09:48 am, David Cassidy wrote:
> > > wheel - re-invent thyself
> > >
> > > ...
> > >
> > > Why ?
> > >
> > >
> > >
> > > Richard S.Martin wrote:
> > >
> > >
> > > why on earth do you want to use a batch file to do this?
> > Why constrain
> > >
> > > yourself to the limited functionality of a flaky OS? Why
> > not do this
> > > from
> > >
> > > Java and then you can build whatever logic you like into it.
> > >
> > >
> > >
> > > On Monday 27 May 2002 09:02 am, 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] <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > >
> > ======================================================================
> > > ==
> > > ===
> > >
> > > To unsubscribe, send email to  [EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>  and include in the body
> > >
> > > of the message "signoff EJB-INTEREST".  For general help,
> > send email
> > > to
> > >
> > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  and
> > include in
> > > the body of the message "help".
> > >
> > >
> > >
> > >
> > >
> > >
> > ======================================================================
> > > ==
> > > ======
> > >
> > > This email and any files transmitted with it are confidential and
> > > intended solely for the use of the individual or entity to
> > whom they
> > > are addressed. All information is the view of the
> > individual and not
> > > necessarily the company. If you are not the intended
> > recipient you are
> > > hereby notified that any dissemination, distribution, or copying of
> > > this communication and its attachments is strictly
> > prohibited. If you
> > > have received this email in error please notify:
> > >
> > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
> > >
> > >
> > >
> > >
> > >
> > >
> > ======================================================================
> > > ==
> > > ======
> > >
> > >
> > >
> > >
> > ======================================================================
> > > ==
> > > ===
> > >
> > > To unsubscribe, send email to  [EMAIL PROTECTED]
> > > <mailto:[EMAIL PROTECTED]>  and include in the body
> > >
> > > of the message "signoff EJB-INTEREST".  For general help,
> > send email
> > > to
> > >
> > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  and
> > include in
> > > the body of the message "help".
> >
> > ----------------------------------------
> > Content-Type: text/html; charset="us-ascii"; name="Attachment: 1"
> > Content-Transfer-Encoding: 7bit
> > Content-Description:
> > ----------------------------------------
> >
> > ==============================================================
> > ================
> > This email and any files transmitted with it are confidential
> > and intended solely for the use of the individual or entity
> > to whom they are addressed. All information is the view of
> > the individual and not necessarily the company. If you are
> > not the intended recipient you are hereby notified that any
> > dissemination, distribution, or copying of this communication
> > and its attachments is strictly prohibited. If you have
> > received this email in error please notify: [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".
>




_________________________________________________________________
Join the world�s largest e-mail service with MSN Hotmail.
http://www.hotmail.com

===========================================================================
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".

Reply via email to