You could investigate "touch" or a windows port of it. Kind regards,
Mark Anderson Service Improvement Programme Level 2, 113 Dundas Street Edinburgh, EH3 5DE Tel: 0131 523 8786 Mob: 07808 826 063 > -----Original Message----- > From: [EMAIL PROTECTED] > [SMTP:[EMAIL PROTECTED] On Behalf Of > Fish, David > Sent: Wednesday, April 06, 2005 1:25 PM > To: perl-win32-users@listserv.ActiveState.com > Subject: File creation date is not maintained when being replaced by > a deleted file > > *** WARNING : This message originates from the Internet *** > > Hello Everyone! I am working on a Windows 2000 server where I have a > Perl program that copies a file from one directory(lets call it test1) > to another directory( let's call test2) as a different filename. Before > the copy is done, the file is deleted in test2. The file in test1 is > recreated nightly. The problem is the created date of the file in > test1 does is inconsistently maintained in test2, where it should match > what is in test1. The delete and copy is happening in the same script. > I haven't been able to resolve this in an automated fashion, but if I > manually delete the files via windows explorer then run the copy process > that date carries over. > > I have tried using perl copy, windows copy/rename and UNIX cp/mv on this > box and nothing seems to consistently work. > > Thanks, > > > David E. Fish > Property Operations > Senior Analyst > Marriott International, Inc > (301) 380-3331 > [EMAIL PROTECTED] > > This communication contains information from Marriott International, > Inc. that may be confidential. Except for personal use by the intended > recipient, or as expressly authorized by the sender, any person who > receives this information is prohibited from disclosing, copying, > distributing, and/or using it. If you have received this communication > in error, please immediately delete it and all copies, and promptly > notify the sender. Nothing in this communication is intended to operate > as an electronic signature under applicable law. > > > _______________________________________________ > Perl-Win32-Users mailing list > Perl-Win32-Users@listserv.ActiveState.com > To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs The Royal Bank of Scotland plc, Registered in Scotland No. 90312. Registered Office: 36 St Andrew Square, Edinburgh EH2 2YB The Royal Bank of Scotland plc is authorised and regulated by the Financial Services Authority and represents The Royal Bank of Scotland Marketing Group. The Bank sells life policies, collective investment schemes and pension products and advises only on the Marketing Group's range of these products and on a With-Profit Bond produced by Norwich Union Life (RBS) Limited. This e-mail message is confidential and for use by the addressee only. If the message is received by anyone other than the addressee, please return the message to the sender by replying to it and then delete the message from your computer. Internet e-mails are not necessarily secure. The Royal Bank of Scotland plc does not accept responsibility for changes made to this message after it was sent. Whilst all reasonable care has been taken to avoid the transmission of viruses, it is the responsibility of the recipient to ensure that the onward transmission, opening or use of this message and any attachments will not adversely affect its systems or data. No responsibility is accepted by The Royal Bank of Scotland plc in this regard and the recipient should carry out such virus and other checks as it considers appropriate. _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs