एएसपी शॉर्टपाथ संपत्ति
❮ पूर्ण फ़ोल्डर वस्तु संदर्भ
शॉर्टपाथ संपत्ति का उपयोग निर्दिष्ट फ़ाइल या फ़ोल्डर (8.3 नामकरण सम्मेलन) के छोटे पथ को वापस करने के लिए किया जाता है।
वाक्य - विन्यास
FileObject.ShortPath
FolderObject.ShortPath
फ़ाइल वस्तु के लिए उदाहरण
<%
dim fs,f
set fs=Server.CreateObject("Scripting.FileSystemObject")
set f=fs.GetFile("c:\asp_test_web\hitcounterfile.txt")
Response.Write("Path: " & f.Path)
Response.Write("<br>ShortPath: " & f.ShortPath)
set f=nothing
set fs=nothing
%>
Output:
Path: C:\asp_test_web\hitcounterfile.txt
ShortPath: C:\ASP_TE~1\HITCOU~1.TXT
फ़ोल्डर वस्तु के लिए उदाहरण
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\asp_test_web")
Response.Write("Path: " & fo.Path)
Response.Write("<br>ShortPath: " & fo.ShortPath)
set fo=nothing
set fs=nothing
%>
Output:
Path: C:\asp_test_web
ShortPath: C:\ASP_TE~1
❮ पूर्ण फ़ोल्डर वस्तु संदर्भ