Article View: borland.public.cppbuilder.nativeapi
Article #17691Re: Change timestamp of a directory
From: Helmut Giese
Date: Thu, 06 Mar 2003 13:51
Date: Thu, 06 Mar 2003 13:51
39 lines
2084 bytes
2084 bytes
On Wed, 5 Mar 2003 21:13:00 -0500, "Ed Mulroy [TeamB]" <ed@mulroy.org> wrote: >This is more steps but easy and works on all versions of Windows. > > >Make a new, temp directory with some name > >Move all the files to the temp directory > >Remove the original directory > >Read and save the system time and date and immediately set system time and >date to the timestamp you want > >Make a new directory with the name you want > >Move the files to the new directory > >Remove the temp directory > >Using the amount of time that has elapsed since you set the phony time and >date, add that to the saved values and set the system time and date. Hm, I thought of that, too. But when going this route everything has to work out 100% - no error allowed - never. Or else the system time will remain set at an arbitrary point in the past - and leave a very puzzled user. But thanks for this idea, I'll keep it in mind. Best regards Helmut Giese >> Helmut Giese wrote in message >> news:3e667f83.3979706@forums.borland.com... >> >> is it possible to change the timestamp of a directory >> once it has been created? All my attempts so far have >> been remarkably unsuccessful. > >
Technical Details
Message-ID:
<3e675170.1917379@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e667f83.3979706@forums.borland.com> <3e66aeb8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9cdd532a1dbdad8e,start X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-06 21:27:36 PST From: hgiese@ratiosoft.com (Helmut Giese) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Change timestamp of a directory Date: Thu, 06 Mar 2003 13:51:47 GMT Message-ID: <3e675170.1917379@forums.borland.com> References: <3e667f83.3979706@forums.borland.com> <3e66aeb8$1@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 141.51.159.119 X-Trace: newsgroups.borland.com 1046958732 141.51.159.119 (6 Mar 2003 05:52:12 -0800) Lines: 40 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!iad-peer.news.verio.net!news.verio.net!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail