ASPGetDriveNameメソッド_
❮完全なFileSystemObjectオブジェクトリファレンス
GetDriveNameメソッドは、指定されたパスのドライブ名を含む文字列を返します。
構文
FileSystemObject.GetDriveName(path)
Parameter | Description |
---|---|
path | Required. The path that will return a drive name |
例
<%
dim fs,dname
set fs=Server.CreateObject("Scripting.FileSystemObject")
dname=fs.GetDriveName("c:\test\test.htm")
Response.Write(dname)
set fs=nothing
%>
Output:
c:
❮完全なFileSystemObjectオブジェクトリファレンス