Hi Sumedha,
I've observed that, after executing the following code snippet
BurstWnd = "Report: C:\\Program Files (x86)\\Report2Web Client Tools\\BursterWatch\\PQ5.mfd Profile: PQ5.mfdProfile - Report2Web Burster";
b = aqString.SubString(BurstWnd,8,68);
the "b" variable's value is equal to "C:\Program Files (x86)\Report2Web Client Tools\BursterWatch\PQ5.mfd " (an extra space at the end) instead of "C:\Program Files (x86)\ReportWeb2Client Tools\BursterWatch\PQ5.mfd".
In any case, as you are using JScript, I suggest that you implement the verification by using the indexOf method. Here is an example:
function Test()
{
var BurstWnd = "Report: C:\\Program Files (x86)\\Report2Web Client Tools\\BursterWatch\\PQ5.mfd Profile: PQ5.mfdProfile - Report2Web Burster";
Log.Message(Verify(BurstWnd, "C:\\Program Files (x86)\\Report2Web Client Tools\\BursterWatch\\PQ5.mfd"));
}
function Verify(Str, Substr)
{
return (Str.indexOf(Substr) != -1) ? true : false
}
For additional information about the indexOf method, please see the "
indexOf Method (Windows Scripting - JScript)" MSDN Library article.