posted on 2011-12-16 17:29
xcp 阅读(1224)
评论(0) 编辑 收藏 所属分类:
ajax
<html>
<head>
head>
<body>
<script type="text/javascript">
var fso;
var drvs;
var drv;
var s;
fso = new activexobject("scripting.filesystemobject");
drvs = new enumerator(fso.drives);
s = " ";
for(;!drvs.atend();drvs.movenext()){
drv = drvs.item();
s = s drv.driveletter;
s = " - ";
if (drv.drivetype == 3)
n = drv.sharename;
else if (drv.isready)
n = drv.volumename " totalsize: " drv.totalsize " freespace: " drv.freespace " availablespace: " drv.availablespace;
else
n = "[drive not ready] ";
s = n "\n ";
}
alert(s);
script>
body>
html>
名称: ♪4c.esl | .↗evon
口号: 遇到新问题♪先要寻找一个方案乄而不是创造一个方案こ
mail: