🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: How to get timestamp of a directory

#17600
From: Ed Mulroy [TeamB]
Date: Sun, 23 Mar 2003 16:40
17 lines
1707 bytes
The Windows API functions FindFirstFile and FindNextFile find files and
return information about them in a WIN32_FIND_DATA structure which along
with many other things contains the last write time.  Directories are just
files and the functions work for them.  Don't forget to call FindClose when
you are done with the search.

Depending upon which version of Windows and what file system is on the disk
the last modification time and date can be approximate, nearly exact or not
given at all.  Don't expect much if using Win95.

.  Ed

> Jarkko Juntunen wrote in message
> news:Xns9347BC315BB75dzeidzei@207.105.83.65...
>
> Need a way to get timestamp (last modification time) of
> a directory. Can  anyone help?
Technical Details
Message-ID: <3e7de3b8@newsgroups.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-mail
References: <Xns9347BC315BB75dzeidzei@207.105.83.65>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,ddd5fd2f8652aa3a
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-03-23 23:22:50 PST
From: "Ed Mulroy [TeamB]" <ed@mulroy.org>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <Xns9347BC315BB75dzeidzei@207.105.83.65>
Subject: Re: How to get timestamp of a directory
Date: Sun, 23 Mar 2003 11:40:59 -0500
Lines: 19
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: <3e7de3b8@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1048437688 24.74.175.102 (23 Mar 2003 08:41:28 -0800)
X-Authenticated-User: edmulroy
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