Encontre un codigo que hace lo que yo quiero pero no consigo ni yo ni nadie que funcione.
Código HTML:
<html>
<head>
<title>Javascript split function</title>
<SCRIPT LANGUAGE="JavaScript">
var archivo="c:\\earcaj\\paramcaj.fic"
function fileexists(){
var fso = new ActiveXObject("Scripting.FileSystemObject");
fileBool = fso.FileExists(archivo);
if (fileBool){document.location.href="http://www.lleida.com"}
else{document.location.href="http://www.paeria.es"}
}
</SCRIPT>
</head>
<body onload="fileexists()">
</body>
</html>