采用客户端的 FileSystemObject 对象
例:
function check()
{
var fso;
fso = new ActiveXObject("Scripting.FileSystemObject");
if( fso.FileExists("c:\\testfile.txt"))
{
alert("Exists!");
}
else
{
alert("not Exists!");
}
}
转载于:https://www.cnblogs.com/linhai/archive/2006/05/11/397653.html