Making a batch file to run on multiple WinXP SP3 computers. I am installing new software on multiple computers and am calling the installation .exe file using a batch file. The problem is the program is not fully installed when the .exe quits as the .exe file calls an .msi file to finish off the install.
I am trying to check if a string/sentence exists in a text file that i am writing a. install log to, and if it does then execute another program, else if it doesn't exist, then check the text file again. This needs to be repeated until the string appears in the text file. Lines of text are being added to this file over short time period, about 4 minutes, during the install.
I have looked into batch commands and managed to figure out how to do a simple check for a string, for example:
findstr /i /c:"Dynamics CRM Successfully installed" c:\crmInstallLog.txt
But i cannot sort out how to tell if it has been found, meaning the install has finished.
Any ideas/example please?