欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

腳本運行時庫  

GetDriveName 方法

根據(jù)指定路徑返回包含驅(qū)動器名稱的字符串。

object.GetDriveName(path) 

參數(shù)

object
必選項。應(yīng)為 FileSystemObject 的名稱。
path
必選項。路徑說明,將根據(jù)其中成分返回驅(qū)動器名稱。

說明

如果無法確定驅(qū)動器,GetDriveName 方法將返回長度為零的字符串 ("")。

注意   GetDriveName 只作用于所提供的 path 字符串。不會試圖解析路徑,也不會檢查指定的路徑是否存在。

下面的例子說明了 GetDriveName 方法的用法。

[JScript]
function GetDriveLetter(path)
{
   var fso, s ="";
   fso = new ActiveXObject("Scripting.FileSystemObject");
   s += fso.GetDrive(fso.GetDriveName(fso.GetAbsolutePathName(path)));
   return(s);
}
[VBScript]
Function GetAName(DriveSpec)
   Dim fso
   Set fso = CreateObject("Scripting.FileSystemObject")
   GetAName = fso.GetDriveName(Drivespec)
End Function

請參閱

GetAbsolutePathName 方法 | GetBaseName 方法 | GetDrive 方法 | GetExtensionName 方法 | GetFile 方法 | GetFileName 方法 | GetFileVersion 方法 | GetFolder 方法 | GetParentFolderName 方法 | GetSpecialFolder 方法 | GetTempName 方法
應(yīng)用于:FileSystemObject 對象