PetreAdi has asked for the wisdom of the Perl Monks concerning the following question:

How to change file creation date (ctime)? W7 64 bits

Replies are listed 'Best First'.
Re: How to change file creation date?
by huck (Prior) on Jan 16, 2017 at 07:17 UTC

    this may work

    use Win32API::File::Time qw{:win}; #$fw=$FileWanted my ($fwatime, $fwmtime, $fwctime) = GetFileTime (fix_dos($frfn)); SetFileTime (fix2dos($tofn), $fwatime, $fwmtime, $fwctime);
    I wanted to match file times after a copy from $frfn to $tofn

    A reply falls below the community's threshold of quality. You may see it by logging in.