Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem instantiating WSH Folder object
Message
 
 
À
Tous
Information générale
Forum:
Internet
Catégorie:
Active Server Page
Titre:
Problem instantiating WSH Folder object
Divers
Thread ID:
00773252
Message ID:
00773252
Vues:
53
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?
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform