ASP ShortPath गुणवत्ता

परिभाषा और उपयोग

ShortPath गुणवत्ता का उपयोग निर्दिष्ट फ़ाइल या फ़ोल्डर के लिए छोटे मार्ग को लॉक रखता है।(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
%>

आउटपुट:

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
%>

आउटपुट:

Path: C:\asp_test_web
ShortPath: C:\ASP_TE~1