Time Stamp

  • Thread starter Thread starter Bob
  • Start date Start date
B

Bob

I am creating a program that zip and unzips files. When
it unzips the file a new file is created. Is there a way
I can change the Time Stamp on the new file? I would
like to be able to change it so it matches the original
file.

Thanks.
 
Unfortunaltely due to some limitations of the platform .NetCF does not
support File.SetCreationTime() method (as well as SetLastaccessTime() and
SetLastWriteTime()). The only workaround I'm aware of is p/invoking down to
native SetFileTime() WinCE API. Please note that this won't work for
directories on WinCE (the time is only set when directory is actually
created).

- Roman

This posting is provided "AS IS" with no warranties, and confers no rights.


--------------------
| Content-Class: urn:content-classes:message
| From: "Bob" <[email protected]>
| Sender: "Bob" <[email protected]>
| Subject: Time Stamp
| Date: Mon, 5 Jan 2004 15:36:51 -0800
| Lines: 7
| Message-ID: <[email protected]>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| Thread-Index: AcPT5Ms4Qr8H6fZsRQaWZkGjXIZ1Ug==
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Path: cpmsftngxa07.phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42199
| NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I am creating a program that zip and unzips files. When
| it unzips the file a new file is created. Is there a way
| I can change the Time Stamp on the new file? I would
| like to be able to change it so it matches the original
| file.
|
| Thanks.
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Back
Top