List Info

Thread: How to Tell Windows that a file Changed




How to Tell Windows that a file Changed
user name
2007-03-16 10:28:30
Hi guys,

Here's the situation, I'm hoping Python-win32 can help.

I have a program that puts files to be OCR'd into a
directory where
Omnipage sees them and then performs OCR on them. 
Everything was
working great, until yesterday when Omnipage stopped
"seeing" files
added to the folder.

What's odd though is that if I manually place a file in the
folder
Omnipage sees it.  So I'm wondering if I can use Python and
(the
windows API) to tell the OS that I've placed a file in the
folder?
(I'm on Windows 2000 professional if that matters)

Thanks in advance for any help or tips.

-Greg
_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

Re: How to Tell Windows that a file Changed
country flaguser name
United States
2007-03-16 10:41:08
Gregory Piņero wrote:

> I have a program that puts files to be OCR'd into a
directory where
> Omnipage sees them and then performs OCR on them. 
Everything was
> working great, until yesterday when Omnipage stopped
"seeing" files
> added to the folder.
> 
> What's odd though is that if I manually place a file in
the folder
> Omnipage sees it.  So I'm wondering if I can use Python
and (the
> windows API) to tell the OS that I've placed a file in
the folder?
> (I'm on Windows 2000 professional if that matters)

Well, it's bizarre behaviour for sure, but in case it helps
you
might try the SHChangeNotify routine exposed in the pywin32
modules. It's one of those does-everything functions MS
seems
to love. The docs, such as they are, are here:

http://tinyurl.com/f5olb

(msdn link)

but I suspect you'll have to poke around the web to find
examples of the parameters.

TJG

_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

Re: How to Tell Windows that a file Changed
user name
2007-03-16 10:45:48
On 3/16/07, Tim Golden <mailtimgolden.me.uk> wrote:
>
> Well, it's bizarre behaviour for sure, but in case it
helps you
> might try the SHChangeNotify routine exposed in the
pywin32
> modules. It's one of those does-everything functions MS
seems
> to love. The docs, such as they are, are here:
>
> http://tinyurl.com/f5olb

> (msdn link)
>
> but I suspect you'll have to poke around the web to
find
> examples of the parameters.
>
Thanks for the advice Tim.  I'm looking at the docs now. 
I'll send an
update on my progress.

-Greg
_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

Re: How to Tell Windows that a file Changed
user name
2007-03-16 17:04:53
On 3/16/07, Gregory Piņero <gregpinerogmail.com> wrote:
> Thanks for the advice Tim.  I'm looking at the docs
now.  I'll send an
> update on my progress.
>

Ok, turns out it was easier just to have Omnipage running
before I
moved the file, then it sees it.  But I'm sure I'll need
this approach
one day anyway.

Thanks again for the help.

-Greg
_______________________________________________
Python-win32 mailing list
Python-win32python.org

http://mail.python.org/mailman/listinfo/python-win32

[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )