I cant find the appropriate place to put this so I will start here.
Problem: I have a task scheduler set up to inform me when there is an error on my server. Lately I have been getting a lot of errors that dont matter and would like to filter those some how.
So when the task scheduler notices an error it runs this command

The command makes a text file with the eventID and information like this and places into a file called query.txt

What i would like to do is get that highlighted part, make that the name of the file, maybe by variable. If i was able to do that, i can have automate search the attachments for certain criteria and i would get only the emails with errors i need.
If someone has a better solution i am all ears.
Thanks,
Richard
Problem: I have a task scheduler set up to inform me when there is an error on my server. Lately I have been getting a lot of errors that dont matter and would like to filter those some how.
So when the task scheduler notices an error it runs this command

The command makes a text file with the eventID and information like this and places into a file called query.txt

What i would like to do is get that highlighted part, make that the name of the file, maybe by variable. If i was able to do that, i can have automate search the attachments for certain criteria and i would get only the emails with errors i need.
If someone has a better solution i am all ears.
Thanks,
Richard