<script>
var fso=new ActiveXObject("scripting.filesystemobject")
if(fso.fileExists("F:\\js.rar"))
alert('文件存在')
else
alert('文件不存在')
</script>