Prev: MIME::Lite and AUTH only after STARTTLS (smtp.gmail.com)
Next: FAQ 6.7 How can I make "\w" match national character sets?
From: void.no.spam.com on 17 Jun 2010 17:41 I know Perl has the utime function, but that only changes the access and modification timestamps. Is there a way to change the creation timestamp of a file? I'm using ActivePerl on Windows.
From: Ben Morrow on 17 Jun 2010 18:24
Quoth "void.no.spam.com(a)gmail.com" <void.no.spam.com(a)gmail.com>: > I know Perl has the utime function, but that only changes the access > and modification timestamps. Is there a way to change the creation > timestamp of a file? I'm using ActivePerl on Windows. You will need a Win32-specific function for this: changing a file's ctime (which is *not* a create time, although Win32 perl maps create time to ctime) is impossible under Unix. Win32API::File::Time looks somewhat convincing, though I've never used it. Ben |