我正在尝试移动一个网站:
- 到 -
这是Windows搜索给我一个问题。我已经设置了一个Windows搜索来索引包含该网站的物理文件夹,我可以查询文件名,但是vpath
和characterization
的新等价物是什么?
这些似乎都不是答案:
http://msdn.microsoft.com/en-us/library/ff521735(v=VS.85).aspx
答案 0 :(得分:1)
从索引服务查询“目录”,“文件名”属性。然后,使用ASP Classic / VbScript,RS表示记录集:
Function MapURL( Path )
' opposite of server.mappath - takes a filesystem path and turns it into a url
Dim AppPath
AppPath = Server.MapPath("/")
path = Replace(path,apppath,"",1,-1,1)
path = Replace(path,"\","/",1,-1,1)
MapURL = path
End Function
Dim vpath
do while not rs.EOF
vpath = rs("directory") & "/" & rs("filename")
response.write MapURL(vpath)
rs.movenext
loop
基于http://geekswithblogs.net/AlsLog/archive/2006/08/03/87032.aspx
的ASP.NET代码答案 1 :(得分:1)
表征= System.Search.AutoSummary
参考:https://msdn.microsoft.com/en-us/library/windows/desktop/bb760163(v=vs.85).aspx