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



GetDriveName 方法

返回包含指定路徑中驅(qū)動(dòng)器名的字符串。

object.GetDriveName(path)

參數(shù)

object

必選項(xiàng)。應(yīng)為 FileSystemObject 的名稱。

path

必選項(xiàng)。指定路徑,要返回其組成部分的驅(qū)動(dòng)器名。

說明

如果無法確定驅(qū)動(dòng)器,則 GetDriveName 方法返回零長度字符串 ("")。

下面例子舉例說明如何使用GetDriveName 方法:

 Function GetAName(DriveSpec)
Dim fso
Set fso =CreateObject("Scripting.FileSystemObject")
GetAName =fso.GetDriveName(Drivespec)
End Function

注意   GetDriveName 方法只能對(duì)提供 path 的字符串起作用。它不能試圖分析一個(gè)路徑,也不能檢查指定路徑是否存在。

請(qǐng)參閱

GetAbsolutePathName 方法 | GetBaseName 方法 | GetDrive 方法 | GetExtensionName 方法 | GetFile 方法 | GetFileName 方法 | GetFolder 方法 | GetParentFolderName 方法 | GetSpecialFolder 方法 | GetTempName 方法

應(yīng)用于:FileSystemObject 對(duì)象

返回首頁