Unrecognized file in BSP page

Hi,

In a BSP page when clicked on one of the field of the table, there is a event which opens up a new window and passes the path details to that window. The path contains file name in a server. The files are actually images(pictures).

The problem is that we know the file name(say //10.255.250.99/....../scenary) but not the extension( viz, it may be .jpg or .bmp or something else).

When clicked on the cell, it should recognize the extension of file and open that file. Is it possible to code that way in BSP?

Is there any wildcards( like .* or something else) which opens up any image file.