本文介绍了目录浏览在PWS中工作,但不在IIS5中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


我有一个页面* *应该*列出服务器上的目录。

这里是代码.. 。


folderspec = server.MapPath(&.; ./ images /")

set fso = CreateObject(" Scripting.FileSystemObject")

设置fold = fso.GetFolder(folderspec)
$ ftb中每个子文件夹的


Response.Write(subfolder.name&"< ; br>")

next

set fold = no

set fso = nothing


该代码在Win98 / PWS上完美运行,但在XP Pro / IIS上引起了一些非常奇怪的事件

。要么它进入一个循环,并挂起服务器,导致我必须重置
。或者它将通过动作,我得到底部的蓝色条形图,它消失了,Done在状态栏中说道,并且页面没有改变
。这很奇怪......


我认为它与权限有关但不确定?


任何帮助表示感谢,


干杯

Dan

Hi guys

I have a page that is *supposed* to list the directories on the server.
Here''s the code...

folderspec = server.MapPath("./images/")
set fso = CreateObject("Scripting.FileSystemObject")
set fold = fso.GetFolder(folderspec)
for each subfolder in fold.subFolders
Response.Write(subfolder.name & "<br>")
next
set fold = nothing
set fso = nothing

The code works perfectly on Win98 / PWS but causes some very odd occurances
on XP Pro / IIS. Either it gets in a loop, and hangs the server, causing me
to have to reset. Or it will go through the motions, I get the blue bar at
the bottom, it goes away, says Done in the status bar, and the page hasnt
changed. It''s weird...

I assume it''s something to do with permissions but not sure?

Any help appreciated,

Cheers
Dan

推荐答案





这篇关于目录浏览在PWS中工作,但不在IIS5中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-17 07:31
查看更多