ExifTool Forum

ExifTool => Archives => Topic started by: Archive on May 12, 2010, 08:54:00 AM

Title: Access File Creation Date of File System as a TAG?
Post by: Archive on May 12, 2010, 08:54:00 AM
[Originally posted by mmmmwwww on 2007-01-29 13:55:06-08]

How can I access the file creation date of the (windows) file system as a TAG by exiftool?
Title: Re: Access File Creation Date of File System as a TAG?
Post by: Archive on May 12, 2010, 08:54:00 AM
[Originally posted by exiftool on 2007-01-29 14:15:58-08]

You can access the Windows file modification date through the
"FileModifyDate" tag.  Is this what you want, or does Windows
maintain a separate creation date that you want to access?

- Phil
Title: Re: Access File Creation Date of File System as a TAG?
Post by: Archive on May 12, 2010, 08:54:00 AM
[Originally posted by mmmmwwww on 2007-01-29 16:35:08-08]

Yes. As far as I see it, Windows NTFS knows three different dates:
- file creation time
- last modified time
- last accessed time

Actually, your answer reminded me that exiftool has not been written for Windows. Does that mean, there is no way to access the Windows NTFS creation time?

- Markus Smiley
Title: Re: Access File Creation Date of File System as a TAG?
Post by: Archive on May 12, 2010, 08:54:00 AM
[Originally posted by exiftool on 2007-01-30 12:48:02-08]

Hi Markus,

I have done some checking into this.  The standard Perl routines
only give access to the modified time and the last accessed time.
There are Windows-specific Perl modules available which can access
the file creation time, but I want to keep ExifTool platform independent
free of dependencies, so I don't want to use other modules like this.

So there seems to be no portable way to do this.

- Phil
Title: Re: Access File Creation Date of File System as a TAG?
Post by: Archive on May 12, 2010, 08:54:00 AM
[Originally posted by keesmoerman on 2007-01-30 19:09:21-08]

Hi Phil,

I am not a linux/unix expert, but could you not use the -C operator for this? Acc to ActiveState info, it means (in relation to the -M and -A operators) 'Same for inode change time (Unix, may differ for other platforms)', but in practice, is this not often the create time (actually, I always thought that was what the 'C' stood for)? On Windows, it looks like creation time anyhow (did not do extensive testing), here the '-A' does not seem to be implemented (correctly), at least not under Vista; -M does seem to work.

Kees Moerman.
Title: Re: Access File Creation Date of File System as a TAG?
Post by: Archive on May 12, 2010, 08:54:00 AM
[Originally posted by exiftool on 2007-01-30 19:20:31-08]

Hi Kees,

Thanks for the suggestion, but the -C stands for "inode Change",
which really isn't useful for this purpose.  It is effectively the same
as last modified time, except differs for symbolic links somehow
(I'm not familiar with the details), but it definitely isn't the creation
time.

- Phil