描述
返回包含指定路径中驱动的名的字符串。
语法
object.GetDriveName(path)
GetDriveNeme 方法的语法有以下部分:
部分  | 
描述  | 
object  | 
必选。。为 FileSystemObject 的名称。  | 
path  | 
必选。指定路径,要返回其组成部分的驱动器名。  | 
说明
如果无法确定驱动器,则 GetDriveName 方法返回零长度字符串 ("")。
注意 GetDriveName 方法仅应用于提的的 path 字符串。该方法不会辨识路径,也不检测路径是否存在。  | 
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.