GetDriveName
パスからドライブ名取得
文法
FileSystemObjectオブジェクト.GetDriveName (Path)
パラメータ
Path : パス
機能説明
パス内のドライブ名を取得
使用例
<%
Dim objFs, objDrv
Set objFs = Server.CreateObject("Scripting.FileSystemObject")
Response.Write "ドライブ名 : " & objFs.GetDriveName("D:\test\test.txt") & "
"
'オブジェクトを開放
Set objFs = Nothing
%>
Topへ