GetAbsolutePathName
ASP GetAbsolutePathName metodi
❮ FileSystemObject obyektining to‘liq ma’lumotnomasi
GetAbsolutePathName metodi ko‘rsatilgan yo‘l uchun disk ildizidan boshlanadigan to‘liq yo‘lni qaytaradi.
Sintaksis
FileSystemObject.GetAbsolutePathName(path)
| Parametr | Tavsif |
|---|---|
| path | Majburiy. To‘liq yo‘lga aylantiriladigan yo‘l |
Misollar
Faraz qilaylik, joriy katalog — c:\temp\test:1-misol
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("c:")
response.write(path)
%>
Output:
c:\temp\test
2-misol
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("mydoc.txt")
response.write(path)
%>
Output:
c:\temp\test\mydoc.txt
3-misol
<%
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 obyektining to‘liq ma’lumotnomasi
W3Schools Pathfinder
Yutuqlaringizni kuzating – bu bepul!
