Under Windows NT 4 and Windows 2000, you can, if you are running on NTFS:

right click on the file in the Explorer and check the "Accessed Time".  This
may reset that time; it seems to sometimes.  It may be the Explorer trying
to load the icon or something else that's doing it.

>From the command prompt, you can type:

dir /ta filename

That will show the "last accessed" time.  Find a file you haven't used in a
while, dir /ta to check, then 'type' the file, or open it in Notepad and
don't save it, and dir /ta again, and the time is updated to right now.

dir has many options under NT.  dir /? knows them all.

If you're using any variant of FAT, or using Win9x, I don't believe this
information is available.

> -----Original Message-----
> From: Petrus Repo [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 23, 2002 12:25 PM
> To: Mike
> Cc: [EMAIL PROTECTED]
> Subject: Re: how to tell when a file was last read
> 
> 
> 
> Hi.
> 
> Check its atime (access time): "ls -l --time=atime <file>".
> Issuing "man ls" gives you more details.
> 
> 
>  -Petrus
> 
> On Tue, 23 Jul 2002, Mike wrote:
> 
> > Hi there,
> > 
> > I understand there is a way to tell when a file was last 
> _read_ by a user.
> > (as opposed to when it was created)
> > Does anybody know how to do this ?
> > under linux ?
> > under windows???
> > 
> > Cheers,
> > 
> > Mike
> > 
> 

Reply via email to