OK, so I'm doing a little ASP VBScripting, and I have the page I'm writing
in the following directory:

C:\Inetpub\wwwroot\HomeValue\

And this is the ASP VBScript I'm trying to use, its simplified for testing
purposes:

<%
Dim fsoObj,objFolder,objFile
Const strPath = "images/"

Set fsoObj = Server.CreateObject("Scripting.FileSystemObject")
Set objFolder = fsoObj.GetFolder(Server.MapPath(strPath))

For Each objFile In objFolder.Files
Response.Write("hello")
Next

%>

This script will stall my browser (browser will say Website found, waiting
for reply... and just load forever with nothing to show) when loaded from
C:\Inetpub\wwwroot\HomeValue but will work perfectly fine when loaded onto
the web...has anybody else encountered this problem? The page can be
accessed at http://www.geo-sync.com/HomeValue/images.asp. Any help would be
much appreciated, thank you.

~Les Peabody

Re: ASP VBScripting...script works here, but not there...? by Ray

Ray
Fri Jan 16 16:58:52 CST 2004

Hopefully you have access to this server, because 99 times out of 100, a
hanging-forever-on-FSO-code is this.

http://www.aspfaq.com/show.asp?id=2180

Ray at work

"Les Peabody" <les.peabody@geo-sync.com> wrote in message
news:OBiOvKI3DHA.1504@TK2MSFTNGP12.phx.gbl...
> OK, so I'm doing a little ASP VBScripting, and I have the page I'm writing
> in the following directory:
>
> C:\Inetpub\wwwroot\HomeValue\
>
> And this is the ASP VBScript I'm trying to use, its simplified for testing
> purposes:
>
> <%
> Dim fsoObj,objFolder,objFile
> Const strPath = "images/"
>
> Set fsoObj = Server.CreateObject("Scripting.FileSystemObject")
> Set objFolder = fsoObj.GetFolder(Server.MapPath(strPath))
>
> For Each objFile In objFolder.Files
> Response.Write("hello")
> Next
>
> %>
>
> This script will stall my browser (browser will say Website found, waiting
> for reply... and just load forever with nothing to show) when loaded from
> C:\Inetpub\wwwroot\HomeValue but will work perfectly fine when loaded onto
> the web...has anybody else encountered this problem? The page can be
> accessed at http://www.geo-sync.com/HomeValue/images.asp. Any help would
be
> much appreciated, thank you.
>
> ~Les Peabody
>
>