🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #213

***** How do you set the last modify date on a file ???

#213
From: Ian Davidson
Date: Wed, 08 Apr 1992 02:09
22 lines
1274 bytes
Hi,

I am writing a file copy routine in C.  The routine copies the file but sets
the TARGET file's last modified date and time as the current time not as the source files last modified date and time.   

Does anybody have any ideas how I would get the source and target files last
access times to be the same.

I could reverse engineer command.com to see how copy does it I can think of a
million other things I would rather do (like have my spleen removed).

 Thanks in anticipation,
 yours in computing




-- 
| Ian Davidson       CSIRO Division of Building, Construction and Engineering |
|                    Post Office Box 56, Highett, Victoria, Australia   3190  |
| Internet: inpd@mel.dbce.csiro.au   Tel: +61 3 556 2211  Fax: +61 3 553 2819 |
|_____________________________________________________________________________|
Technical Details
Message-ID: <362@highett.mel.dbce.csiro.au>
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!mel.dit.csiro.au!highett!inpd

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!munnari.oz.au!mel.dit.csiro.au!highett!inpd
From: inpd@mel.dbce.csiro.au (Ian Davidson)
Newsgroups: comp.windows.ms.programmer
Subject: ***** How do you set the last modify date on a file ???
Keywords: files, last access date, chmod
Message-ID: <362@highett.mel.dbce.csiro.au>
Date: 8 Apr 92 02:09:59 GMT
Organization: CSIRO, Div. Building Constr. and Eng'ing, Melb., Australia
Lines: 22