in reply to ctime versus mtime under WIN XP
Finally, it works on another PC....
"
I reinstalled the "problem PC" and now the original code works on this machine too. A waste of time and moreover, I still don't know what caused my headaches.
Thanks for the usefull feedback!