🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Change timestamp of a directory

#17702
From: Remy Lebeau (TeamB)
Date: Wed, 05 Mar 2003 23:17
26 lines
1783 bytes
"Helmut Giese" <hgiese@ratiosoft.com> wrote in message
news:3e667f83.3979706@forums.borland.com...

> is it possible to change the timestamp of a directory
> once it has been created?

Which OS are you using exactly?

Under WinNT/2K/XP, you can use CreateFile() to get a HANDLE to a folder and
then use Get/SetFileTime() with it.

Under Win9x/Me, you'll have to instead do some low-level assembly
programming to communicate with the FileSystem directly to accomplish that,
using Int 21h function 7143h:

Interrupt 21h Function 7143h
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/win9x/95fun
c_29ew.asp

It might be possible to use CreateFile() with VWIN32.VXD to control the Int
21h calling for you, but I haven't tried it myself.  VWIN32.VXD supports
Int21h, but I don't know if it supports Function 7143h.


Gambit
Technical Details
Message-ID: <3e668386$1@newsgroups.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-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 21:49:02 PST
From: "Remy Lebeau \(TeamB\)" <gambit47@yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3e667f83.3979706@forums.borland.com>
Subject: Re: Change timestamp of a directory
Date: Wed, 5 Mar 2003 15:17:46 -0800
Lines: 28
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: 207.175.226.26
Message-ID: <3e668386$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1046905734 207.175.226.26 (5 Mar 2003 15:08:54 -0800)
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