Search for a string and perform an action
Posted: 01 Jun 2008 20:56
Hello all,
I have an application that when it finishes creates some log files.
I need to do a search in one of the log files (text files) for the words "Success" or "Failure".
If I find "Success" then I run a message box informing the users that the application completed successfully and if I find "Failure", the message box informs the users it failed.
I like to do this in a simple dos script as I am running the actual application by a dos script.
Any help is much appreciated.
Thanks...
I have an application that when it finishes creates some log files.
I need to do a search in one of the log files (text files) for the words "Success" or "Failure".
If I find "Success" then I run a message box informing the users that the application completed successfully and if I find "Failure", the message box informs the users it failed.
I like to do this in a simple dos script as I am running the actual application by a dos script.
Any help is much appreciated.
Thanks...