Hi All;
Again another batch file to write for a stupid reason, but hey ho.
What i am trying to do is find out a version of a poorly written application a certain machine is running.
the only differential i can find is a xml file. there are two different versions, the old version does not contain the following string;
<SystemVersions>
What i propose todo is create an output file if the string exists/or doesn’t, after which i can poll these machines, and the ones that fail to bring back a file have either the new/old version of this application.
To do this i have started down this route, but failing at the end.
’
grep <SystemVersions> afile.xml >version.txt
cat version.txt |find “<SystemVersions>”> nul
if errorlevel=0 goto bad
else goto good
:bad
exit
:good
echo good >good.txt
exit
’
I know i have syntaxt issues, but just wanting to know if i am going about this the right way or not?
Cheers all!