<html>
<head><body>
<a href="file.html" onclick="test('fileName')">文件下载</a><script>
function test(name){ //如: name=D:\Program Files\Instant Source\a.asp;
var fso=new ActiveXObject("Scripting.FileSystemObject");
alert(fso.FileExists(name)?'存在':'不存在');
}</script></body>
</html>
<head><body>
<a href="file.html" onclick="test('fileName')">文件下载</a><script>
function test(name){ //如: name=D:\Program Files\Instant Source\a.asp;
var fso=new ActiveXObject("Scripting.FileSystemObject");
alert(fso.FileExists(name)?'存在':'不存在');
}</script></body>
</html>
/^[a-z]:/i