South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
You'd have to run the batch file as a scheduled task (or similar) to make it automated.
Why not write a very lightweight .NET service and use the FileSystemWatcher to monitor the directory?
Cool thanks for the idea. Will need to refresh my limited C# knowledge!![]()
No worries, the reason I suggest that is because a batch file could become more effort than it's worth. You'll need to some detect the the crash file is new (maybe compare to a previous list) which means you'll need to store that list somewhere (text file) etc etc
Here's what I'm talking about:
FileSystemWatcher Class (MSDN)
Monitoring File System using FileSystemWatcher Class - Part 1
Just create a new project of type "Windows Service" and Visual Studio puts all the bits in for you. I suggest you start off with a Console Application, get everything working and then port it to a Service project. Debugging service projects can be a pain.