Metodo ASP GetAbsolutePathName
❮ Riferimento completo dell'oggetto FileSystemObject
Il metodo GetAbsolutePathName restituisce il percorso completo dalla radice dell'unità per il percorso specificato.
Sintassi
FileSystemObject.GetAbsolutePathName(path)
Parameter | Description |
---|---|
path | Required. The path to change to a complete path |
Esempi
Si supponga che la directory corrente sia c:\temp\test:Esempio 1
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("c:")
response.write(path)
%>
Output:
c:\temp\test
Esempio 2
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("mydoc.txt")
response.write(path)
%>
Output:
c:\temp\test\mydoc.txt
Esempio 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
❮ Riferimento completo dell'oggetto FileSystemObject