Article View: borland.public.cppbuilder.nativeapi
Article #17716Re: Change timestamp of a directory
From: Helmut Giese
Date: Thu, 06 Mar 2003 19:45
Date: Thu, 06 Mar 2003 19:45
29 lines
2422 bytes
2422 bytes
On Thu, 6 Mar 2003 09:45:37 -0500, "Ed Mulroy [TeamB]" <ed@mulroy.org> wrote: >> Helmut Giese wrote in message >> news:3e675170.1917379@forums.borland.com... >> 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. > >When Windows 3.0 (yes, the replacement for Win 386) came out I was greatly >bothered by how it commonly would lock up a program of any size. I used to >do this by executing a second, small exe with a hidden window which would >accept a set of messages. I would tell it what my main window's caption was >(so it could find the window later), and what the original and phony time >was. This 2nd app would look for the first window and if found would then >yield. If it did not find the first window it would check the time and date >and if wildly off, adjust the time. It would then quit. What a sneaky way :) Ok, I concede that this looks like a rather reliable approach. However, the problem I'm trying to solve looks like a minor issue right now - hey, even when I unzip archives with commercial tools I don't get the original timestamp for directories. For my app, I'll wait until this feature gets requested - then do some big eye-rolling, "oh, oh, complicated stuff you're asking there" -- while all the time having a solution ready. Thanks a lot for your advice. Helmut Giese
Technical Details
Message-ID:
<3e67a3bb.22987159@forums.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3e667f83.3979706@forums.borland.com> <3e66aeb8$1@newsgroups.borland.com> <3e675170.1917379@forums.borland.com> <3e675f1c@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,9cdd532a1dbdad8e X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-03-06 22:48:38 PST From: hgiese@ratiosoft.com (Helmut Giese) Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: Change timestamp of a directory Date: Thu, 06 Mar 2003 19:45:35 GMT Message-ID: <3e67a3bb.22987159@forums.borland.com> References: <3e667f83.3979706@forums.borland.com> <3e66aeb8$1@newsgroups.borland.com> <3e675170.1917379@forums.borland.com> <3e675f1c@newsgroups.borland.com> X-Newsreader: Forte Free Agent 1.21/32.243 NNTP-Posting-Host: 141.51.159.119 X-Trace: newsgroups.borland.com 1046979959 141.51.159.119 (6 Mar 2003 11:45:59 -0800) Lines: 29 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail