网站首页 | 文章中心 | 源码中心 | 虚拟主机 | 域名注册 |  贺卡源码 | Java特效 |
您现在的位置: 人文中国 >> 文章中心 >> javascript >> 文章正文

  没有公告

FreeSpace Property     ★★★★★ 【字体:
FreeSpace Property
作者:贵仁文    文章来源:renwen    点击数:    更新时间:2003-11-19
Description

Returns the amount of free space available to a user on the specified drive or network share. Read-only.

Syntax

object.FreeSpace

The object is always a Drive object.

Remarks

The value returned by the FreeSpace property is typically the same as that returned by the AvailableSpace property. Differences may occur between the two for computer systems that support quotas.

The following code illustrates the use of the FreeSpace property:

function ShowFreeSpace(drvPath)
{
    var fs, d, s;
    fs = new ActiveXObject("Scripting.FileSystemObject");
    d = fs.GetDrive(fs.GetDriveName(drvPath));
    s = "Drive " + drvPath.toUpperCase( ) + " - " ;
    s += d.VolumeName + "\n";
    s += "Free Space: " + d.FreeSpace/1024 + " Kbytes";
    window.alert(s);
}

文章录入:renwen    责任编辑:renwen 
  • 上一篇文章:

  • 下一篇文章:
  • 发表评论】【加入收藏】【告诉好友】【打印此文】【关闭窗口
    最新热点 最新推荐 相关文章
    Java加密和数字签名编程快速…
    字符随鼠标漂动
    用JavaScript实现窗口从天而…
    JavaScript技巧4例
    如何提高asp运行速度
    JavaScript脚本精粹--滚动文…
    文字追鼠标,这辈子跟定你了?
    Java apple实现的动态菜单
    3D文字特技(java特技)
    JavaScript脚本精粹--变色背…
      网友评论:(只显示最新10条。评论内容只代表网友观点,与本站立场无关!)