Properti ya Njia ya ASP
Maelezo na Matumizi
Maelezo ya jicho na matumizi ya Properti ya Njia
Inayofuatilia
DriveObject.Path FileObject.Path FolderObject.Path
Mfano wa mtaani wa Drive
<% 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 %>
Muhtasari:
Njia yako ni E:
Mfano wa mtaani wa File
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\asp\test.asp") Response.Write("Nafasi ni: " & f.Path) set f=nothing set fs=nothing %>
Muhtasari:
Njia yako ni: C:\asp\test.asp
Mfano wa mtaani wa Folder
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\asp\test") Response.Write("Nafasi ni: " & fo.Path) set fo=nothing set fs=nothing %>
Muhtasari:
Nafasi ni: C:\asp\test