I refrained from suggesting this yesterday as it looked like you didn't have access to the source for application.exe, but as it appears that you do, how about simply adding 'write-to-a-daily-rotated-log-filename' routine to application.exe instead, rather than having to write more-and-more complicated external control routines? I realise this may be not what you want for other reasons, but it sounds like this is becoming a bit of a monster <g>. Or of course, you could switch to 'nix... :)