Jump to content

Recommended Posts

Posted

Linux has no notion of file creation times.

Windows has no notion of file access times.

 

If you use touch.exe to modify the file access time, you end up altering the creation time. Non-obvious but it works here.

Posted
C:>mkdir test

C:\>dir tes*
Volume in drive C has no label.
Volume Serial Number is 3872-15DD

Directory of C:\

15/11/2005  16:46              test
              0 File(s)              0 bytes
              1 Dir(s)  22,417,858,560 bytes free

C:\>time
The current time is: 16:46:54.61
Enter the new time: 18:46

C:\>touch -a test

C:\>dir tes*
Volume in drive C has no label.
Volume Serial Number is 3872-15DD

Directory of C:\

15/11/2005  18:47              test
              0 File(s)              0 bytes
              1 Dir(s)  22,417,858,560 bytes free

Posted

D:\TEMP\UnxUtils\usr\local\wbin>mkdir touchtest

D:\TEMP\UnxUtils\usr\local\wbin>dir touchtes*
Volume in drive D is Data
Volume Serial Number is 1891-F909

Directory of D:\TEMP\UnxUtils\usr\local\wbin

15/11/2005  21:15              touchtest
              0 File(s)              0 bytes
              1 Dir(s)   7,943,389,184 bytes free

D:\TEMP\UnxUtils\usr\local\wbin>touch -a touchtest
touch: touchtest: Permission denied

D:\TEMP\UnxUtils\usr\local\wbin>

 

What am I doing wrong?

 

Incidentally, I tried TOUCHing a file, and sure enough, the 'Modified' and 'Accessed' dates change, but the 'Created' date does not.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...