Re: How to tell when a file is opened

2007-04-08 Thread Tim Golden
momobear wrote: >> Will look into NTFS change journals when I get some spare time. > How can we get NTFS change journals? Is there any API for this purpose > or we could implement our own? > there're an api in windows help us montior file changes. > win32file.ReadDirectoryChangesW Don't know what

Re: How to tell when a file is opened

2007-04-07 Thread momobear
> Will look into NTFS change journals when I get some spare time. How can we get NTFS change journals? Is there any API for this purpose or we could implement our own? there're an api in windows help us montior file changes. win32file.ReadDirectoryChangesW -- http://mail.python.org/mailman/list

Re: How to tell when a file is opened

2007-04-07 Thread Adam
On Apr 7, 8:02 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Adam wrote: > > On Apr 7, 5:09 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > > Adam wrote: > > > > I want to know if it possible to tell when a file is opened. However I > > > > don't want it to be the last access time. I want to k

Re: How to tell when a file is opened

2007-04-07 Thread Gabriel Genellina
Adam wrote: > On Apr 7, 5:09 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > Adam wrote: > > > I want to know if it possible to tell when a file is opened. However I > > > don't want it to be the last access time. I want to know how many > > > times a file opened so I can generate statistics of fi

Re: How to tell when a file is opened

2007-04-07 Thread Adam
On Apr 7, 5:09 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > Adam wrote: > > I want to know if it possible to tell when a file is opened. However I > > don't want it to be the last access time. I want to know how many > > times a file opened so I can generate statistics of file usage. > > > I will be

Re: How to tell when a file is opened

2007-04-07 Thread Terry Reedy
"Adam" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Hello, | | I want to know if it possible to tell when a file is opened. Just by Python? (Hack the file and open and possibly os.open code) or by any program? (Hack the OS -- good luck!) -- http://mail.python.org/mailman/lis

Re: How to tell when a file is opened

2007-04-07 Thread Tim Golden
Adam wrote: > I want to know if it possible to tell when a file is opened. However I > don't want it to be the last access time. I want to know how many > times a file opened so I can generate statistics of file usage. > > I will be wanting to watch all files on a server so this will be on > quite

How to tell when a file is opened

2007-04-07 Thread Adam
Hello, I want to know if it possible to tell when a file is opened. However I don't want it to be the last access time. I want to know how many times a file opened so I can generate statistics of file usage. I will be wanting to watch all files on a server so this will be on quite a large scale.