snkt shah, regardless of what OS you are using, your code seems to be wrong in any case

It looks like you're trying to enumerate all the IE windows.
With The first segment of code you have added, you can actually use to enumerate both IE as well as Windows Explorer windows. For IE, you use the Location proeprty ( not sure about full name )
For Windows Explorer, you'll need the path property

You could always use the FindWindow and FindWindowEx properties as well, but just remember that, with IE 7, there is some differences in getting certain info than there was in IE 6