Setting file modification time 
Author Message
 Setting file modification time

Yeah, you can *get* it with FileDateTime() but how the heck do ya *set*
it.

There's a C function, _utime, which will do that but before I wrap that
in a .DLL, does anyone know an existing goddam Windows .DLL with an API
that will do the same thing. Seems astonishing that there isn't
(obviously, anyway, despite MSCD searches and all) anything I can find.



Sat, 07 Feb 1998 03:00:00 GMT  
 Setting file modification time

Quote:
>Yeah, you can *get* it with FileDateTime() but how the heck do ya *set*
>it.
>There's a C function, _utime, which will do that but before I wrap that
>in a .DLL, does anyone know an existing <expletive> Windows .DLL with an
>API that will do the same thing. Seems astonishing that there isn't
>(obviously, anyway, despite MSCD searches and all) anything I can find.

The Delphi guys were kind enough to do the .dll for us.

Get this file:

ftp://ftp.netcom.com/pub/rc/rcw/vbcode/datetime.zip

It includes the .dpr files.
--
_________________________________________________________
Robert Woodcock | Note: Your standard disclaimers apply. |

................| it can be quite a curse) - Plucky Duck |



Sun, 08 Feb 1998 03:00:00 GMT  
 Setting file modification time

Quote:

>Yeah, you can *get* it with FileDateTime() but how the heck do ya *set*
>it.

>There's a C function, _utime, which will do that but before I wrap that
>in a .DLL, does anyone know an existing goddam Windows .DLL with an API
>that will do the same thing. Seems astonishing that there isn't
>(obviously, anyway, despite MSCD searches and all) anything I can find.

        I looked up how the Delphi FileSetDate works (speaking of Delphi
versus VB, anyone have the source for VB?<g>). Delphi uses a DOS 21h thing
to set the date, which seems like evidence that there really is no WinAPI for
it, since surely they didn't feel performance was an issue(?) and an API
call would be more portable.

--
David Ullrich
Don't you guys find it tedious typing the same thing
after your signature each time you post something?
I know I do, but when in Rome...



Wed, 11 Feb 1998 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. File Modification Date/Time - grabbing and setting

2. How to get the file-modification-time

3. CopyFile() API - file modification time changes.

4. Set local system time to file server time

5. Modification to Time and Date stamp needed

6. Modification time?

7. Date/time of last modification for an URL

8. Can't copy file after recent modification

9. Q: Setup File Modification!

10. Q: modification of win.ini file

11. Modification date of a file

12. File modification notification

 

 
Powered by phpBB® Forum Software