ASP Path အက္ခရာ

အသုံးပြုခြင်း နှင့် အပြုအရင်

Path အက္ခရာအား သတ်မှတ်ထားသော လျှပ်စစ်သမား၊ ဖြည့်စင်းအရာတွေ သို့မဟုတ် ဖွဲ့စည်းတွေ အတွက် လမ်းကြောင်း ကို ပြန်လည်ပေးသည်。

အက္ခရာပုံ

DriveObject.Path 
FileObject.Path
FolderObject.Path

ဖြည့်စင်းအရာတွေ အတွက် အမျိုးအမျိုးသော အကျိုးသတ္တိ

<%
dim fs,d
set fs=Server.CreateObject("Scripting.FileSystemObject")
set d=fs.GetDrive("e:")
Response.Write("The path is " & d.Path)
set d=nothing
set fs=nothing
%>

输出:

The path is E:

ဖြည့်စင်းအရာတွေ အတွက် အမျိုးအမျိုးသော အကျိုးသတ္တိ

<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\asp\test.asp")
Response.Write("The path is: " & f.Path)
set f=nothing
set fs=nothing
%>

输出:

The path is: C:\asp\test.asp

ဖြည့်စင်းအရာတွေ အတွက် အမျိုးအမျိုးသော အကျိုးသတ္တိ

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\asp\test")
Response.Write("The path is: " & fo.Path)
set fo=nothing
set fs=nothing
%>

输出:

The path is: C:\asp\test