<SCRIPT LANGUAGE=javascript> <!-- var path ="d:\\aa.xml"; var fso = new ActiveXObject("Scripting.FileSystemObject"); if ( fso.FileExists(path)) { var file= fso.GetFile(path); alert(parseInt(file.size /1024) +"K"); }else { alert("File not exists!"); } //--> </SCRIPT>
<!--
var path ="d:\\aa.xml";
var fso = new ActiveXObject("Scripting.FileSystemObject");
if ( fso.FileExists(path))
{
var file= fso.GetFile(path);
alert(parseInt(file.size /1024) +"K");
}else
{
alert("File not exists!");
}
//-->
</SCRIPT>