Article View: borland.public.cppbuilder.nativeapi
Article #17612Re: How to get timestamp of a directory
From: David Cameron
Date: Mon, 24 Mar 2003 00:20
Date: Mon, 24 Mar 2003 00:20
50 lines
3054 bytes
3054 bytes
"Ed Mulroy [TeamB]" <ed@mulroy.org> wrote in message news:3e7e4381@newsgroups.borland.com... > To get OP information, you're either going to have to go to the OP docs and > sources or ask someone who does a lot with OP. This is the native API > group. In this group if OP does anything useful then "that's ok too". > Sorry, maybe I wasn't clear, I was using OP as meaning Original Poster. > As for the root, No workaround is necessary. The root is not a directory, > never has been. If you are searching in the root directory the file times > and dates for its contents will tell you the last modification date. > > On my machines (95 and XP Pro) and my wife's machine (98 SE) "My Documents" > is a perfectly good directory and shows when you do a directory search. Yes "My Documents" is a valid directory on my system (98 SE) but when used as the lpFileName parameter to FindFirstFile, the function fails (returns INVALID_HANDLE_VALUE). "My Documents" fails. "C:\\My Documents" suceeds. > Under the Win 2K, XP types of Windows My Documents is a directory in the > user's directory tree. Under 95/98/98SE it seems to be the same for > everyone. On my machine it is: > "C:\Documents and Settings\Administrator\My Documents" > or, if you prefer short names: > C:\DOCUME~1\ADMINI~1\MYDOCU~1 > but short names are not unique, especially across systems, so it is better > to use the long versions. > Did you ever use different "user profiles" under 98SE Ed? I'm pretty sure the "My Documents" special folder, and others map to different actual disk directories depending on the current user. > > David Cameron wrote in message > > news:3e7e0c97@newsgroups.borland.com... > > > > --bunch of stuff about modification dates related > > to the root directory and object pascal-- C++ actually, sorry it was the OP thing :o Thanks, Dave
Technical Details
Message-ID:
<3e7e4f67$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<Xns9347BC315BB75dzeidzei@207.105.83.65> <3e7de3b8@newsgroups.borland.com> <3e7e0c97@newsgroups.borland.com> <3e7e4381@newsgroups.borland.com>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-24 00:04:03 PST Reply-To: "David Cameron" <dave@NO_SPAM.please.ecclehill.freeserve.co.uk> From: "David Cameron" <dave@NO_SPAM.please.ecclehill.freeserve.co.uk> Newsgroups: borland.public.cppbuilder.nativeapi References: <Xns9347BC315BB75dzeidzei@207.105.83.65> <3e7de3b8@newsgroups.borland.com> <3e7e0c97@newsgroups.borland.com> <3e7e4381@newsgroups.borland.com> Subject: Re: How to get timestamp of a directory Date: Mon, 24 Mar 2003 00:20:49 -0000 Lines: 52 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 81.76.172.134 Message-ID: <3e7e4f67$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1048465255 81.76.172.134 (23 Mar 2003 16:20:55 -0800) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail