473,503 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

FileSystemObject On IIS

MDW
I'm not sure if this is a coding problem or an IIS settings problem.

I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
development prior to rolling out my Web page to a hosting service like
Brinkster. I've never done that before.

I'm also trying to use the FileSystemObject to create a dynamic set of links
to all the HTML files within a folder, so that I don't have to keep adding
and removing links as my main content changes. I've never used FSO on a Web
site before.

Whenever the following code executes, the page doesn't load:

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))

strPath = Left(strPath, InStrRev(strPath,"\"))

Response.Write strPath & "<br>"

Set objFolder = objFSO.OpenFolder(strPath)

Response.Write strPath & " has been opened"

Set objFolder = Nothing
Set objFSO = Nothing

I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
to die - when I comment it out, the page loads fine. I'm fairly certain the
code is OK, but I'm not positive. Is there something I have to do differently
when I use FSO within ASP?

Or is it possible that I don't have my IIS configured correctly? Any
pointers on that? I know absolutely nothing about server setup.
--
Hmm...they have the Internet on COMPUTERS now!
Jul 22 '05 #1
9 2540
I wasn't aware there was an OpenFolder method for FSO?

Try changing;

Set objFolder = objFSO.OpenFolder(strPath)

To;

Set objFolder = objFSO.GetFolder(strPath)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
I'm not sure if this is a coding problem or an IIS settings problem.

I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
development prior to rolling out my Web page to a hosting service like
Brinkster. I've never done that before.

I'm also trying to use the FileSystemObject to create a dynamic set of links
to all the HTML files within a folder, so that I don't have to keep adding
and removing links as my main content changes. I've never used FSO on a Web
site before.

Whenever the following code executes, the page doesn't load:

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))

strPath = Left(strPath, InStrRev(strPath,"\"))

Response.Write strPath & "<br>"

Set objFolder = objFSO.OpenFolder(strPath)

Response.Write strPath & " has been opened"

Set objFolder = Nothing
Set objFSO = Nothing

I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
to die - when I comment it out, the page loads fine. I'm fairly certain the
code is OK, but I'm not positive. Is there something I have to do differently
when I use FSO within ASP?

Or is it possible that I don't have my IIS configured correctly? Any
pointers on that? I know absolutely nothing about server setup.
--
Hmm...they have the Internet on COMPUTERS now!


Jul 22 '05 #2
MDW
I believe that both syntaxes are valid.

But in either case, changing the method didn't help. It just sits there and
tries to load. If I let it sit there long enough, I'll get a "This page
cannot be displayed" error.

"Steven Burn" wrote:
I wasn't aware there was an OpenFolder method for FSO?

Try changing;

Set objFolder = objFSO.OpenFolder(strPath)

To;

Set objFolder = objFSO.GetFolder(strPath)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
I'm not sure if this is a coding problem or an IIS settings problem.

I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
development prior to rolling out my Web page to a hosting service like
Brinkster. I've never done that before.

I'm also trying to use the FileSystemObject to create a dynamic set of links
to all the HTML files within a folder, so that I don't have to keep adding
and removing links as my main content changes. I've never used FSO on a Web
site before.

Whenever the following code executes, the page doesn't load:

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))

strPath = Left(strPath, InStrRev(strPath,"\"))

Response.Write strPath & "<br>"

Set objFolder = objFSO.OpenFolder(strPath)

Response.Write strPath & " has been opened"

Set objFolder = Nothing
Set objFSO = Nothing

I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
to die - when I comment it out, the page loads fine. I'm fairly certain the
code is OK, but I'm not positive. Is there something I have to do differently
when I use FSO within ASP?

Or is it possible that I don't have my IIS configured correctly? Any
pointers on that? I know absolutely nothing about server setup.
--
Hmm...they have the Internet on COMPUTERS now!


Jul 22 '05 #3
With OpenFolder I got;

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'OpenFolder'

With GetFolder I got;

[Path Removed]\misc\
[Path Removed]\misc\ has been opened

http://mysteryfcm.plus.com/misc/testfso.asp

Code I used:

http://mysteryfcm.plus.com/misc/testfso.asp?s=Show_Code

--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:EE**********************************@microsof t.com...
I believe that both syntaxes are valid.

But in either case, changing the method didn't help. It just sits there and
tries to load. If I let it sit there long enough, I'll get a "This page
cannot be displayed" error.

"Steven Burn" wrote:
I wasn't aware there was an OpenFolder method for FSO?

Try changing;

Set objFolder = objFSO.OpenFolder(strPath)

To;

Set objFolder = objFSO.GetFolder(strPath)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
I'm not sure if this is a coding problem or an IIS settings problem.

I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
development prior to rolling out my Web page to a hosting service like
Brinkster. I've never done that before.

I'm also trying to use the FileSystemObject to create a dynamic set of links
to all the HTML files within a folder, so that I don't have to keep adding
and removing links as my main content changes. I've never used FSO on a Web
site before.

Whenever the following code executes, the page doesn't load:

Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))

strPath = Left(strPath, InStrRev(strPath,"\"))

Response.Write strPath & "<br>"

Set objFolder = objFSO.OpenFolder(strPath)

Response.Write strPath & " has been opened"

Set objFolder = Nothing
Set objFSO = Nothing

I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
to die - when I comment it out, the page loads fine. I'm fairly certain the
code is OK, but I'm not positive. Is there something I have to do differently
when I use FSO within ASP?

Or is it possible that I don't have my IIS configured correctly? Any
pointers on that? I know absolutely nothing about server setup.
--
Hmm...they have the Internet on COMPUTERS now!



Jul 22 '05 #4
MDW
Well, OK so I need to use GetFOlder. But it still doesn't seem to work.

Any ideas if I need to change any IIS settings to get it to work right?

"Steven Burn" wrote:
With OpenFolder I got;

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'OpenFolder'

With GetFolder I got;

[Path Removed]\misc\
[Path Removed]\misc\ has been opened

http://mysteryfcm.plus.com/misc/testfso.asp

Code I used:

http://mysteryfcm.plus.com/misc/testfso.asp?s=Show_Code

--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:EE**********************************@microsof t.com...
I believe that both syntaxes are valid.

But in either case, changing the method didn't help. It just sits there and
tries to load. If I let it sit there long enough, I'll get a "This page
cannot be displayed" error.

"Steven Burn" wrote:
I wasn't aware there was an OpenFolder method for FSO?

Try changing;

Set objFolder = objFSO.OpenFolder(strPath)

To;

Set objFolder = objFSO.GetFolder(strPath)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
> I'm not sure if this is a coding problem or an IIS settings problem.
>
> I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
> development prior to rolling out my Web page to a hosting service like
> Brinkster. I've never done that before.
>
> I'm also trying to use the FileSystemObject to create a dynamic set of links
> to all the HTML files within a folder, so that I don't have to keep adding
> and removing links as my main content changes. I've never used FSO on a Web
> site before.
>
> Whenever the following code executes, the page doesn't load:
>
> Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))
>
> strPath = Left(strPath, InStrRev(strPath,"\"))
>
> Response.Write strPath & "<br>"
>
> Set objFolder = objFSO.OpenFolder(strPath)
>
> Response.Write strPath & " has been opened"
>
> Set objFolder = Nothing
> Set objFSO = Nothing
>
> I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
> to die - when I comment it out, the page loads fine. I'm fairly certain the
> code is OK, but I'm not positive. Is there something I have to do differently
> when I use FSO within ASP?
>
> Or is it possible that I don't have my IIS configured correctly? Any
> pointers on that? I know absolutely nothing about server setup.
> --
> Hmm...they have the Internet on COMPUTERS now!


Jul 22 '05 #5
Try enabling the error messages if you haven't already;

In IE;

Tools > Internet Options > Advanced (tab)

Untick "Show friendly HTTP error messages"

In IIS;

Home Directory (tab) > Configuration (button)

Click the Debugging tab, then place a tick in "Enable ASP server-side ascript debugging"

Under "Script Error Messages", select "Send detailed ASP error messages to client"

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:51**********************************@microsof t.com...
Well, OK so I need to use GetFOlder. But it still doesn't seem to work.

Any ideas if I need to change any IIS settings to get it to work right?

"Steven Burn" wrote:
With OpenFolder I got;

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'OpenFolder'

With GetFolder I got;

[Path Removed]\misc\
[Path Removed]\misc\ has been opened

http://mysteryfcm.plus.com/misc/testfso.asp

Code I used:

http://mysteryfcm.plus.com/misc/testfso.asp?s=Show_Code

--
Regards


Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:EE**********************************@microsof t.com...
I believe that both syntaxes are valid.

But in either case, changing the method didn't help. It just sits there and
tries to load. If I let it sit there long enough, I'll get a "This page
cannot be displayed" error.

"Steven Burn" wrote:

> I wasn't aware there was an OpenFolder method for FSO?
>
> Try changing;
>
> Set objFolder = objFSO.OpenFolder(strPath)
>
> To;
>
> Set objFolder = objFSO.GetFolder(strPath)
>
> --
> Regards
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> "MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
> > I'm not sure if this is a coding problem or an IIS settings problem.
> >
> > I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
> > development prior to rolling out my Web page to a hosting service like
> > Brinkster. I've never done that before.
> >
> > I'm also trying to use the FileSystemObject to create a dynamic set of links
> > to all the HTML files within a folder, so that I don't have to keep adding
> > and removing links as my main content changes. I've never used FSO on a Web
> > site before.
> >
> > Whenever the following code executes, the page doesn't load:
> >
> > Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> > strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))
> >
> > strPath = Left(strPath, InStrRev(strPath,"\"))
> >
> > Response.Write strPath & "<br>"
> >
> > Set objFolder = objFSO.OpenFolder(strPath)
> >
> > Response.Write strPath & " has been opened"
> >
> > Set objFolder = Nothing
> > Set objFSO = Nothing
> >
> > I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
> > to die - when I comment it out, the page loads fine. I'm fairly certain the
> > code is OK, but I'm not positive. Is there something I have to do differently
> > when I use FSO within ASP?
> >
> > Or is it possible that I don't have my IIS configured correctly? Any
> > pointers on that? I know absolutely nothing about server setup.
> > --
> > Hmm...they have the Internet on COMPUTERS now!
>
>



Jul 22 '05 #6
MDW
Well, I might have misspoken. It's been about 25 minutes, and I STILL can't
get the page to load, even to come up with an error. The progress bar is
about halfway, and it doesn't look like it's moving any farther.

"Steven Burn" wrote:
Try enabling the error messages if you haven't already;

In IE;

Tools > Internet Options > Advanced (tab)

Untick "Show friendly HTTP error messages"

In IIS;

Home Directory (tab) > Configuration (button)

Click the Debugging tab, then place a tick in "Enable ASP server-side ascript debugging"

Under "Script Error Messages", select "Send detailed ASP error messages to client"

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:51**********************************@microsof t.com...
Well, OK so I need to use GetFOlder. But it still doesn't seem to work.

Any ideas if I need to change any IIS settings to get it to work right?

"Steven Burn" wrote:
With OpenFolder I got;

Microsoft VBScript runtime error '800a01b6'
Object doesn't support this property or method: 'OpenFolder'

With GetFolder I got;

[Path Removed]\misc\
[Path Removed]\misc\ has been opened

http://mysteryfcm.plus.com/misc/testfso.asp

Code I used:

http://mysteryfcm.plus.com/misc/testfso.asp?s=Show_Code

--
Regards
Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:EE**********************************@microsof t.com...
> I believe that both syntaxes are valid.
>
> But in either case, changing the method didn't help. It just sits there and
> tries to load. If I let it sit there long enough, I'll get a "This page
> cannot be displayed" error.
>
> "Steven Burn" wrote:
>
> > I wasn't aware there was an OpenFolder method for FSO?
> >
> > Try changing;
> >
> > Set objFolder = objFSO.OpenFolder(strPath)
> >
> > To;
> >
> > Set objFolder = objFSO.GetFolder(strPath)
> >
> > --
> > Regards
> >
> > Steven Burn
> > Ur I.T. Mate Group
> > www.it-mate.co.uk
> >
> > Keeping it FREE!
> >
> > "MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
> > > I'm not sure if this is a coding problem or an IIS settings problem.
> > >
> > > I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
> > > development prior to rolling out my Web page to a hosting service like
> > > Brinkster. I've never done that before.
> > >
> > > I'm also trying to use the FileSystemObject to create a dynamic set of links
> > > to all the HTML files within a folder, so that I don't have to keep adding
> > > and removing links as my main content changes. I've never used FSO on a Web
> > > site before.
> > >
> > > Whenever the following code executes, the page doesn't load:
> > >
> > > Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> > > strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))
> > >
> > > strPath = Left(strPath, InStrRev(strPath,"\"))
> > >
> > > Response.Write strPath & "<br>"
> > >
> > > Set objFolder = objFSO.OpenFolder(strPath)
> > >
> > > Response.Write strPath & " has been opened"
> > >
> > > Set objFolder = Nothing
> > > Set objFSO = Nothing
> > >
> > > I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
> > > to die - when I comment it out, the page loads fine. I'm fairly certain the
> > > code is OK, but I'm not positive. Is there something I have to do differently
> > > when I use FSO within ASP?
> > >
> > > Or is it possible that I don't have my IIS configured correctly? Any
> > > pointers on that? I know absolutely nothing about server setup.
> > > --
> > > Hmm...they have the Internet on COMPUTERS now!
> >
> >


Jul 22 '05 #7
Bit of a long shot but, try checking the permissions for the folder your trying to access, and make sure you don't have any third party applications that could be blocking the script (e.g. Norton, Zone Alarm, WinPatrol, Spybot S&D, ScriptSentry etc etc etc)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:3E**********************************@microsof t.com...
Well, I might have misspoken. It's been about 25 minutes, and I STILL can't
get the page to load, even to come up with an error. The progress bar is
about halfway, and it doesn't look like it's moving any farther.

"Steven Burn" wrote:
Try enabling the error messages if you haven't already;

In IE;

Tools > Internet Options > Advanced (tab)

Untick "Show friendly HTTP error messages"

In IIS;

Home Directory (tab) > Configuration (button)

Click the Debugging tab, then place a tick in "Enable ASP server-side ascript debugging"

Under "Script Error Messages", select "Send detailed ASP error messages to client"

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:51**********************************@microsof t.com...
Well, OK so I need to use GetFOlder. But it still doesn't seem to work.

Any ideas if I need to change any IIS settings to get it to work right?

"Steven Burn" wrote:

> With OpenFolder I got;
>
> Microsoft VBScript runtime error '800a01b6'
> Object doesn't support this property or method: 'OpenFolder'
>
> With GetFolder I got;
>
> [Path Removed]\misc\
> [Path Removed]\misc\ has been opened
>
> http://mysteryfcm.plus.com/misc/testfso.asp
>
> Code I used:
>
> http://mysteryfcm.plus.com/misc/testfso.asp?s=Show_Code
>
> --
> Regards
>
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> "MDW" <MD*@discussions.microsoft.com> wrote in message news:EE**********************************@microsof t.com...
> > I believe that both syntaxes are valid.
> >
> > But in either case, changing the method didn't help. It just sits there and
> > tries to load. If I let it sit there long enough, I'll get a "This page
> > cannot be displayed" error.
> >
> > "Steven Burn" wrote:
> >
> > > I wasn't aware there was an OpenFolder method for FSO?
> > >
> > > Try changing;
> > >
> > > Set objFolder = objFSO.OpenFolder(strPath)
> > >
> > > To;
> > >
> > > Set objFolder = objFSO.GetFolder(strPath)
> > >
> > > --
> > > Regards
> > >
> > > Steven Burn
> > > Ur I.T. Mate Group
> > > www.it-mate.co.uk
> > >
> > > Keeping it FREE!
> > >
> > > "MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
> > > > I'm not sure if this is a coding problem or an IIS settings problem.
> > > >
> > > > I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
> > > > development prior to rolling out my Web page to a hosting service like
> > > > Brinkster. I've never done that before.
> > > >
> > > > I'm also trying to use the FileSystemObject to create a dynamic set of links
> > > > to all the HTML files within a folder, so that I don't have to keep adding
> > > > and removing links as my main content changes. I've never used FSO on a Web
> > > > site before.
> > > >
> > > > Whenever the following code executes, the page doesn't load:
> > > >
> > > > Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> > > > strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))
> > > >
> > > > strPath = Left(strPath, InStrRev(strPath,"\"))
> > > >
> > > > Response.Write strPath & "<br>"
> > > >
> > > > Set objFolder = objFSO.OpenFolder(strPath)
> > > >
> > > > Response.Write strPath & " has been opened"
> > > >
> > > > Set objFolder = Nothing
> > > > Set objFSO = Nothing
> > > >
> > > > I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
> > > > to die - when I comment it out, the page loads fine. I'm fairly certain the
> > > > code is OK, but I'm not positive. Is there something I have to do differently
> > > > when I use FSO within ASP?
> > > >
> > > > Or is it possible that I don't have my IIS configured correctly? Any
> > > > pointers on that? I know absolutely nothing about server setup.
> > > > --
> > > > Hmm...they have the Internet on COMPUTERS now!
> > >
> > >
>
>



Jul 22 '05 #8
norton script blocking ?

its evil for asp

"MDW" <MD*@discussions.microsoft.com> wrote in message
news:3E**********************************@microsof t.com...
Well, I might have misspoken. It's been about 25 minutes, and I STILL
can't
get the page to load, even to come up with an error. The progress bar is
about halfway, and it doesn't look like it's moving any farther.

"Steven Burn" wrote:
Try enabling the error messages if you haven't already;

In IE;

Tools > Internet Options > Advanced (tab)

Untick "Show friendly HTTP error messages"

In IIS;

Home Directory (tab) > Configuration (button)

Click the Debugging tab, then place a tick in "Enable ASP server-side
ascript debugging"

Under "Script Error Messages", select "Send detailed ASP error messages
to client"

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message
news:51**********************************@microsof t.com...
> Well, OK so I need to use GetFOlder. But it still doesn't seem to work.
>
> Any ideas if I need to change any IIS settings to get it to work right?
>
> "Steven Burn" wrote:
>
> > With OpenFolder I got;
> >
> > Microsoft VBScript runtime error '800a01b6'
> > Object doesn't support this property or method: 'OpenFolder'
> >
> > With GetFolder I got;
> >
> > [Path Removed]\misc\
> > [Path Removed]\misc\ has been opened
> >
> > http://mysteryfcm.plus.com/misc/testfso.asp
> >
> > Code I used:
> >
> > http://mysteryfcm.plus.com/misc/testfso.asp?s=Show_Code
> >
> > --
> > Regards
> >
> >
> > Steven Burn
> > Ur I.T. Mate Group
> > www.it-mate.co.uk
> >
> > Keeping it FREE!
> >
> > "MDW" <MD*@discussions.microsoft.com> wrote in message
> > news:EE**********************************@microsof t.com...
> > > I believe that both syntaxes are valid.
> > >
> > > But in either case, changing the method didn't help. It just sits
> > > there and
> > > tries to load. If I let it sit there long enough, I'll get a "This
> > > page
> > > cannot be displayed" error.
> > >
> > > "Steven Burn" wrote:
> > >
> > > > I wasn't aware there was an OpenFolder method for FSO?
> > > >
> > > > Try changing;
> > > >
> > > > Set objFolder = objFSO.OpenFolder(strPath)
> > > >
> > > > To;
> > > >
> > > > Set objFolder = objFSO.GetFolder(strPath)
> > > >
> > > > --
> > > > Regards
> > > >
> > > > Steven Burn
> > > > Ur I.T. Mate Group
> > > > www.it-mate.co.uk
> > > >
> > > > Keeping it FREE!
> > > >
> > > > "MDW" <MD*@discussions.microsoft.com> wrote in message
> > > > news:82**********************************@microsof t.com...
> > > > > I'm not sure if this is a coding problem or an IIS settings
> > > > > problem.
> > > > >
> > > > > I've enabled IIS on my local machine (Windows XP SP2) so I can
> > > > > do some ASP
> > > > > development prior to rolling out my Web page to a hosting
> > > > > service like
> > > > > Brinkster. I've never done that before.
> > > > >
> > > > > I'm also trying to use the FileSystemObject to create a dynamic
> > > > > set of links
> > > > > to all the HTML files within a folder, so that I don't have to
> > > > > keep adding
> > > > > and removing links as my main content changes. I've never used
> > > > > FSO on a Web
> > > > > site before.
> > > > >
> > > > > Whenever the following code executes, the page doesn't load:
> > > > >
> > > > > Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> > > > > strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))
> > > > >
> > > > > strPath = Left(strPath, InStrRev(strPath,"\"))
> > > > >
> > > > > Response.Write strPath & "<br>"
> > > > >
> > > > > Set objFolder = objFSO.OpenFolder(strPath)
> > > > >
> > > > > Response.Write strPath & " has been opened"
> > > > >
> > > > > Set objFolder = Nothing
> > > > > Set objFSO = Nothing
> > > > >
> > > > > I'm pretty sure it's the "objFSO.OpenFolder" command that's
> > > > > causing the page
> > > > > to die - when I comment it out, the page loads fine. I'm fairly
> > > > > certain the
> > > > > code is OK, but I'm not positive. Is there something I have to
> > > > > do differently
> > > > > when I use FSO within ASP?
> > > > >
> > > > > Or is it possible that I don't have my IIS configured
> > > > > correctly? Any
> > > > > pointers on that? I know absolutely nothing about server setup.
> > > > > --
> > > > > Hmm...they have the Internet on COMPUTERS now!
> > > >
> > > >
> >
> >


Jul 22 '05 #9
Just an FYI, been sorting out my favourites and came accross this;

#2180 Why does FileSystemObject hang all of a sudden
http://www.aspfaq.com/show.asp?id=2180

ASPFAQ seems to be down atm (well, I can't get the page up atm here anyway) so if you have any problems, try viewing it later :o)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"Steven Burn" <so*******@in-time.invalid> wrote in message news:ui**************@TK2MSFTNGP12.phx.gbl...
Bit of a long shot but, try checking the permissions for the folder your trying to access, and make sure you don't have any third party applications that could be blocking the script (e.g. Norton, Zone Alarm, WinPatrol, Spybot S&D, ScriptSentry etc etc etc)

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:3E**********************************@microsof t.com...
Well, I might have misspoken. It's been about 25 minutes, and I STILL can't
get the page to load, even to come up with an error. The progress bar is
about halfway, and it doesn't look like it's moving any farther.

"Steven Burn" wrote:
Try enabling the error messages if you haven't already;

In IE;

Tools > Internet Options > Advanced (tab)

Untick "Show friendly HTTP error messages"

In IIS;

Home Directory (tab) > Configuration (button)

Click the Debugging tab, then place a tick in "Enable ASP server-side ascript debugging"

Under "Script Error Messages", select "Send detailed ASP error messages to client"

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"MDW" <MD*@discussions.microsoft.com> wrote in message news:51**********************************@microsof t.com...
Well, OK so I need to use GetFOlder. But it still doesn't seem to work.

Any ideas if I need to change any IIS settings to get it to work right?

"Steven Burn" wrote:

> With OpenFolder I got;
>
> Microsoft VBScript runtime error '800a01b6'
> Object doesn't support this property or method: 'OpenFolder'
>
> With GetFolder I got;
>
> [Path Removed]\misc\
> [Path Removed]\misc\ has been opened
>
> http://mysteryfcm.plus.com/misc/testfso.asp
>
> Code I used:
>
> http://mysteryfcm.plus.com/misc/testfso.asp?s=Show_Code
>
> --
> Regards
>
>
> Steven Burn
> Ur I.T. Mate Group
> www.it-mate.co.uk
>
> Keeping it FREE!
>
> "MDW" <MD*@discussions.microsoft.com> wrote in message news:EE**********************************@microsof t.com...
> > I believe that both syntaxes are valid.
> >
> > But in either case, changing the method didn't help. It just sits there and
> > tries to load. If I let it sit there long enough, I'll get a "This page
> > cannot be displayed" error.
> >
> > "Steven Burn" wrote:
> >
> > > I wasn't aware there was an OpenFolder method for FSO?
> > >
> > > Try changing;
> > >
> > > Set objFolder = objFSO.OpenFolder(strPath)
> > >
> > > To;
> > >
> > > Set objFolder = objFSO.GetFolder(strPath)
> > >
> > > --
> > > Regards
> > >
> > > Steven Burn
> > > Ur I.T. Mate Group
> > > www.it-mate.co.uk
> > >
> > > Keeping it FREE!
> > >
> > > "MDW" <MD*@discussions.microsoft.com> wrote in message news:82**********************************@microsof t.com...
> > > > I'm not sure if this is a coding problem or an IIS settings problem.
> > > >
> > > > I've enabled IIS on my local machine (Windows XP SP2) so I can do some ASP
> > > > development prior to rolling out my Web page to a hosting service like
> > > > Brinkster. I've never done that before.
> > > >
> > > > I'm also trying to use the FileSystemObject to create a dynamic set of links
> > > > to all the HTML files within a folder, so that I don't have to keep adding
> > > > and removing links as my main content changes. I've never used FSO on a Web
> > > > site before.
> > > >
> > > > Whenever the following code executes, the page doesn't load:
> > > >
> > > > Set objFSO = Server.CreateObject("Scripting.FileSystemObject")
> > > > strPath = Server.MapPath(Request.ServerVariables("PATH_INFO" ))
> > > >
> > > > strPath = Left(strPath, InStrRev(strPath,"\"))
> > > >
> > > > Response.Write strPath & "<br>"
> > > >
> > > > Set objFolder = objFSO.OpenFolder(strPath)
> > > >
> > > > Response.Write strPath & " has been opened"
> > > >
> > > > Set objFolder = Nothing
> > > > Set objFSO = Nothing
> > > >
> > > > I'm pretty sure it's the "objFSO.OpenFolder" command that's causing the page
> > > > to die - when I comment it out, the page loads fine. I'm fairly certain the
> > > > code is OK, but I'm not positive. Is there something I have to do differently
> > > > when I use FSO within ASP?
> > > >
> > > > Or is it possible that I don't have my IIS configured correctly? Any
> > > > pointers on that? I know absolutely nothing about server setup.
> > > > --
> > > > Hmm...they have the Internet on COMPUTERS now!
> > >
> > >
>
>


Jul 22 '05 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
3833
by: Marcelo Rizzo | last post by:
I am trying to get the name of a file with a specific extension (tmw) from several different directories. The problem I am having is that the program stops working on the second pass with an run...
5
4038
by: John Dewbert | last post by:
*** post for FREE via your newsreader at post.newsfeed.com *** Hello, I have trouble passing a folder object (from a FileSystemObject) to a sub procedure. Consider the following code: ...
3
6792
by: Wayfarer | last post by:
Hi, I've got a freebie hosting mirror of my production personal website (sounds kinda grandiose, doesn't it?) at http://journeys.webhostme.com/. At the production website I was using...
3
2098
by: Steve | last post by:
Hi all, FileSystemObject question... I'm trying to check if files exist or not, but the files are not sitting on the same server as our Intranet. Basically we have about 5000 photos in a...
2
2160
by: Sean S - Perth, WA | last post by:
Hi all, If I create a FileSystemObject Object is it appropriate to reuse it to perform operations on different files/folders? Or should I create a new FileSystemObject Object for each file and...
9
3887
by: kermit | last post by:
I keep seeing that you can use the FileSystemObject in either VB script, or Javascript on an aspx page. I added a refrence to the scrrun.dll I added importing namespaces for 'System.Object',...
2
4012
by: Luis Esteban Valencia | last post by:
I'm trying to write a little VB.NET script in an ASP.NET web page that will create folders, move files, etc... pretty much everything you can expect to do using the FileSystemObject library. Is...
1
17068
by: G Gerard | last post by:
Hello I am using the FileSystemObject to copy files on a computer Dim MyObject as Object
3
1844
by: nagmvs | last post by:
hello I have a problem with FileSystemObject in Vb Suppose i want to declare as Dim fs As New FileSystemObject, when i type New After that i can't see FileSystemObject in derived DropDownList. ...
12
5864
lee123
by: lee123 | last post by:
why is this so hard to do. i have alot of books that have exaples of how to do these things but when i try the exaples they never work i have a previous post on "copying files" some of the other guys...
0
7202
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7086
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7280
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7460
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5578
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3154
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1512
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
380
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.