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

腳本運行時庫  

GetExtensionName 方法

返回包含路徑中最后成分擴展名的字符串。

object.GetExtensionName(path) 

參數(shù)

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

說明

對于網(wǎng)絡(luò)驅(qū)動器,根目錄 (\) 將被認為是一個成分。

如果沒有和 path 參數(shù)匹配的成分,那么 GetExtensionName 方法將返回長度為零的字符串 ("")。

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

[JScript]
function ShowExtensionName(filespec)
{
   var fso, s = "";
   fso = new ActiveXObject("Scripting.FileSystemObject");
   s += fso.GetExtensionName(filespec);
   return(s);
}
[VBScript]
Function GetAnExtension(DriveSpec)
   Dim fso
   Set fso = CreateObject("Scripting.FileSystemObject")
   GetAnExtension = fso.GetExtensionName(Drivespec)
End Function

請參閱

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