🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #17626

Re: Change timestamp of a directory

#17626
From: Ed Mulroy [TeamB]
Date: Thu, 06 Mar 2003 02:13
30 lines
1758 bytes
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.


.  Ed

> 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: <3e66aeb8$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3e667f83.3979706@forums.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 23:20:19 PST
From: "Ed Mulroy [TeamB]" <ed@mulroy.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e667f83.3979706@forums.borland.com>
Subject: Re: Change timestamp of a directory
Date: Wed, 5 Mar 2003 21:13:00 -0500
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 24.74.175.102
Message-ID: <3e66aeb8$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1046916792 24.74.175.102 (5 Mar 2003 18:13:12 -0800)
X-Authenticated-User: edmulroy
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail