ASP GetAbsolutePathName နည်းလမ်း
❮ ပြီးပြည့်စုံသော FileSystemObject အရာဝတ္ထု ရည်ညွှန်းချက်
GetAbsolutePathName နည်းလမ်းသည် သတ်မှတ်ထားသောလမ်းကြောင်းအတွက် drive ၏ အမြစ်မှ ပြီးပြည့်စုံသောလမ်းကြောင်းကို ပြန်ပေးသည်။
အထားအသို
FileSystemObject.GetAbsolutePathName(path)
Parameter | Description |
---|---|
path | Required. The path to change to a complete path |
ဥပမာများ
လက်ရှိ directory သည် c:\temp\test ဟု ယူဆပါ ။ဥပမာ ၁
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("c:")
response.write(path)
%>
Output:
c:\temp\test
ဥပမာ ၂
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.GetAbsolutePathName("mydoc.txt")
response.write(path)
%>
Output:
c:\temp\test\mydoc.txt
ဥပမာ ၃
<%
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 အရာဝတ္ထု ရည်ညွှန်းချက်