ASPGetAbsolutePathNameメソッド_
❮完全なFileSystemObjectオブジェクトリファレンス
GetAbsolutePathNameメソッドは、指定されたパスのドライブのルートからの完全なパスを返します。
構文
FileSystemObject.GetAbsolutePathName(path)
Parameter | Description |
---|---|
path | Required. The path to change to a complete path |
例
現在のディレクトリがc:\ temp \ testであると仮定します。例1
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("c:")
response.write(path)
%>
Output:
c:\temp\test
例2
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("mydoc.txt")
response.write(path)
%>
Output:
c:\temp\test\mydoc.txt
例3
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("private\mydoc.txt")
response.write(path)
%>
Output:
c:\temp\test\private\mydoc.txt
❮完全なFileSystemObjectオブジェクトリファレンス