File exists check
检查客户端的文件是否存在:我用的是VisualAgeForJava得WebSphere测试环境,
fso = new ActiveXObject("Scripting.FileSystemObject");出错,不能创建对象
[JScript]
function ReportFileStatus(filespec)
{
var fso;
fso = new ActiveXObject("Scripting.FileSystemObject");
if (fso.FileExists(filespec))
return true;
else
return false;
}
请问应该如何检查,谢谢大家了