<script language="javascript" type=text/javascript>
function ShowFileAccessInfo(filespec)
{
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFile(filespec); // filespec 是指定文件的路径(绝对和或相对的),必选项。
s = f.Path.toUpperCase() + "<br>"; //文件路径
s += "建立时间: " + f.DateCreated + "<br>";
s += "最后访问时间: " + f.DateLastAccessed + "<br>";
s += "最后修改时间: " + f.DateLastModified ;
return(s);
}
var filespec="H://javascript//source//文件操作方法.txt";
document.write(ShowFileAccessInfo(filespec));
</script>
<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
function ShowFileAccessInfo(filespec)
{
var fso, f, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
f = fso.GetFile(filespec); // filespec 是指定文件的路径(绝对和或相对的),必选项。
s = f.Path.toUpperCase() + "<br>"; //文件路径
s += "建立时间: " + f.DateCreated + "<br>";
s += "最后访问时间: " + f.DateLastAccessed + "<br>";
s += "最后修改时间: " + f.DateLastModified ;
return(s);
}
var filespec="H://javascript//source//文件操作方法.txt";
document.write(ShowFileAccessInfo(filespec));
</script>
<script type="text/javascript"> </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>