axmed0207, как-то так:
Код:
function onClickNextScreen(sURL)
{
var oShell = new ActiveXObject("WScript.Shell");
var pos = sURL.lastIndexOf('\\');
if (pos >= 0)
{
oShell.CurrentDirectory = sURL.substring(0, pos + 1);
oShell.Run(sURL.substring(pos + 1));
}
else
oShell.Run(sURL);
}