<html> 
<head> 
<script language="javascript"> 
<!-- 
var fileExists = false; 
function yes() 

alert("the file exists."); 
yes = true; 
} function no() 

if(!fileExists) 

alert("the file does not exist."); 

} window.onerror = yes 
window.onload = no 
//--> 
</script> 
<script language="javascript" 
src="file://c:\autoexec.bat"></script> 
</head> 
</html>