monitoring a directory

M

mc kinzy

hello every1,

i would like to monitor a directory, i.e. when it is opeaned, exited,
etc. i know i would have to create a thread for it, but can any1 help
me how to do it.

thanx in advance

mckinzy
 
R

Roedy Green

i would like to monitor a directory, i.e. when it is opeaned, exited,
etc. i know i would have to create a thread for it, but can any1 help
me how to do it.

there is no platform independent way to do this. So read up how you do
it in C++ on platform, then write some JNI glue to it.

See http://mindprod.com/jgloss/jni.html

I am using a program called Copernic that does that. It is wonderful
the way it instantly indexes the files I have recently modified.

It is so much faster than Google Desktop and so much more accurate.

See http://mindprod.com/jgloss/copernic.html
 
S

Stefan Hueneburg

hi,

mc said:
i would like to monitor a directory, i.e. when it is opeaned, exited,
etc. i know i would have to create a thread for it, but can any1 help
me how to do it.

Maybe you wanna take a look to Jnotify (http://jnotify.sourceforge.net/).

It seems to work on recent Linux and Windows using native Syscalls.

cu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top