I'm looking for a simple script to move and archive logs created by a windows application. The application starts a new log when it reaches a certain size. I want to move all logs except the one currently being written to so they can be processed and archived. I cant suspend the windows app and move all of them so I need a reliable way to identify the one still being written and skip that one. Any ideas would be helpful

Thanks