Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: file timestamp and Windows 7

by mjscott2702 (Pilgrim)
on Jan 05, 2011 at 08:59 UTC ( #880542=note: print w/replies, xml ) Need Help??

in reply to file timestamp and Windows 7

On a Windows 7 machine with NTFS, modification time was successfully updated using:


$ ls -goc dummy.txt; perl -e 'utime undef, undef, "dummy.txt"'; ls -go +c dummy.txt -rw-r--r--+ 1 0 2011-01-05 08:44 dummy.txt -rw-r--r--+ 1 0 2011-01-05 08:49 dummy.txt

and ActiveState perl:

>dir dummy.txt 05/01/2011 08:49 0 dummy.txt >perl -e "utime undef, undef, 'dummy.txt'" >dir dummy.txt 05/01/2011 08:53 0 dummy.txt

I think the file system format (NTFS here) may be significant - also make sure you have write permission on the files you are updating.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://880542]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2017-06-22 19:12 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (528 votes). Check out past polls.