Drive 对象
时间:2007-12-27 来源:不详 作者:林子
提供对特定磁盘驱动器或网络共享属性的访问。 织梦内容管理系统
说明
下面的代码演示了如何用 Drive 对象访问驱动器属性: 织梦内容管理系统
function ShowFreeSpace(drvPath) {
var fso, d, s;
fso = new ActiveXObject("Scripting.FileSystemObject");
d = fso.GetDrive(fso.GetDriveName(drvPath));
s = "Drive " drvPath " - " ;
s = d.VolumeName "<br>";
s = "Free Space: " d.FreeSpace/1024 " Kbytes";
return(s);
}copyright dedecms
方法
Drive 对象没有方法。
copyright dedecms
属性
AvailableSpace 属性 | DriveLetter 属性 | DriveType 属性 | FileSystem 属性 | FreeSpace 属性 | IsReady 属性 | Path 属性 | RootFolder 属性 | SerialNumber 属性 | ShareName 属性 | TotalSize 属性 | VolumeName 属性
本文来自织梦
请参阅
Drives 集合 | File 对象 | Files 集合 | Folder 对象 | Folders 集合 | GetDrive 方法
dedecms.com

上一篇:Drives 集合 下一篇:Dictionary 对象
文章评论
共有位Admini5网友发表了评论 查看完整内容