asp是不是不能对www服务器所有的文件进行检索?
1.我看的例子都是在指定的www服务的目录下用FileSystemObject
可以进行检索.但是能不能对硬盘所有的文件进行检索呢?
2.我自己浏览http://localhost/source可以看到文件
但是用我自己的程序:
<HTML><BODY>
<UL>
<%
On Error Resume Next
Set fs=Server.CreatObject("Scripting.FileSystemObject")
FullPath=Sever.MapPath("/source")
Set fd=fs.GetFolder(FullPath)
For Each f In fd.Files
Response.Write f.Name & "<BR>"
Next
%>
</UL>
</BODY></HTML>
就是看不到文件,请高手指点.