Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem instantiating WSH Folder object
Message
From
02/04/2003 16:15:51
 
 
To
All
General information
Forum:
Internet
Category:
Active Server Page
Title:
Problem instantiating WSH Folder object
Miscellaneous
Thread ID:
00773252
Message ID:
00773252
Views:
52
I'm having a problem that's driing me nuts. I tracked a nasty bug on an ASP page down to the GetFolder method of WSH FileSystemObject.

I can instantiate FSO perfectly, but when I use GetFolder to instantiate a folder object, it hangs, so the page never finish loading, and IIS needs to be restarted in order to serve anything else.

Look at some sample code:

This works:
Dim oFSO, loFolder
Set oFSO=CreateObject("Scripting.FileSystemObject")
I can print: oFSO.Drives.Count

But if I do:
Set loFolder=oFSO.GetFolder(lcPath)
This hangs further execution. I know that this code WORKS in other environments.

I'm running IIS 5.0, W2K Pro SP3.

Any idea?
Next
Reply
Map
View

Click here to load this message in the networking platform