Hi,
I have a script running on win32 system that uses a change notification to wait for files to process. My first issue is keeping a logfile up to date in the loop. I have found that if the script is interupted or closed via task manager then much of the log file is lost. I resolved this by putting open and close commands before and after each log entry. I figure there must be a more graceful way.